Re:Realm is a mobile database: an alternative to SQLite and ...
by unsoundInput on Monday February 06, 2017 @05:46PM
(#13585038)
I started using sqlbrite (in combination with sqldelight) and stopped treating the database as an object store. Instead I create an interface for the data the customer needs (e.g. an item interface for elements in a listview), write a select query whose result fulfills this interface, and let the rest happen via databinding.
This seems to work fine up to a couple of thousand of elements for me.
But in general I rely on RxJava to provide fine grained notifications. For example (psudeocode):
It's messy because you end up having to repeat everything after map for every property, not really an ideal solution