I'm using Android Room to load data. my query is this:
@Query("SELECT * FROM TrackedItem where isArchived = 0 ORDER BY creationDate DESC")
Flowable<List<TrackedItem>> getAll();
When calling getAll() I get all the items at the first time. Then, I'm updating all the items using a network request. What happens is that if I have 100 items, the getAll() will emit 100 times the entire list, which will update the RecyclerView 100 times.
Best practice for getting a single item that was changed and calling notifyItemChanged?
Thanks.
Flowable
, but there's a reason Room is in alpha... :-) – CommonsWare