objectbox-java icon indicating copy to clipboard operation
objectbox-java copied to clipboard

Support observing changed entities only

Open thsseek opened this issue 5 years ago • 5 comments

Edit: instead of returning all results, only return changes (e.g. newly inserted, or updated entities).

thsseek avatar May 16 '19 18:05 thsseek

Have a look at https://docs.objectbox.io/data-observers-and-rx -Uwe

greenrobot-team avatar May 21 '19 05:05 greenrobot-team

看看https://docs.objectbox.io/data-observers-and-rx -Uwe

He will return the unmodified data to me. How can I get the data that was added or modified? Instead of returning an array of all the data 屏幕快照 2019-05-24 下午3 28 51

ghost avatar May 24 '19 07:05 ghost

Sorry, to my knowledge that is not possible. -Uwe

greenrobot-team avatar May 27 '19 11:05 greenrobot-team

Try ObjectBoxLiveData

Buggaboo avatar May 28 '19 17:05 Buggaboo

@Buggaboo ObjectBoxLiveData is just a wrapper around a data observer. You still have to keep track of things that changed yourself (e.g. the async diff tool for RecyclerView.Adapter does that). -Uwe

greenrobot-team avatar Jun 03 '19 09:06 greenrobot-team