Examples combining RxJava and Realm
Things to keep in mind
Observables might have a default
Schedulerthey operate on that is different than the one the RealmObject was created on. Accessing Realm objects on the wrong thread will throw an
RealmObjects are live objects that automatically stay up to date. Operators that expect immutable objects will most likely not work as expected, e.g.
Retrofit 1.x automatically uses a worker thread.
Use the Realm async API instead of
subscribeOnto move Realm work off the UI thread.
You can use
Realm.copyFromRealmto make a copy of Realm data.