objectbox / objectbox/objectbox-java

Data Observers with debounce like RxJava?

Open
#603 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
4.6k
Forks
311
PR merge metrics
No merged PRs in 30d

Description

I`m using Data Observers in my project,I have found the DataObserver#onData get notified as soon as I change the data.

The thing is I actually don`t want to refresh UI so frequently,so I add RxQuery with debounce to solve this problem.

Maybe it`s better if the ObjectBox support this kind of feature?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with objectbox-rxjava/src/main/java/io/objectbox/rx/RxQuery.java and the DataObserver#onData behavior described in the issue. Determine how a built-in debounce option should fit the observer API and what tests would demonstrate that notifications are coalesced before refreshing the UI.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases, mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.