What is meant by the term Managed Object
and Unmanaged Object
in Realm DB ??
I have searched this term everywhere and I found these links quora
& managedObject. But still unsure.
I know it's trivial but in Realm docs nowhere it is explained.
I found some explanations in realm document.
FAQ/What is the difference between a normal Java object and a Realm object?
Instances of Realm objects can be either managed or unmanaged.
- Managed objects are persisted in Realm, are always up to date and thread confined. They are generally more lightweight than the unmanaged version as they take up less space on the Java heap.
- Unmanaged objects are just like ordinary Java objects, they are not persisted and they will not be updated automatically. They can be moved freely across threads.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With