-
Type:
Improvement
-
Resolution: Fixed
-
Priority:
Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Local
-
None
-
?
-
5
-
569
-
Kotlin Beta sprint 39, Kotlin Beta sprint 40, Kotlin Beta sprint 41
In Realm Java, there are use cases where you want to store objects in-memory, detached from Realm.
- Avoid version pinning
- Allow other reflection libraries
- Enable "caching" for fast lookup of the same properties
We could expose a similar API in Kotlin.
<T: RealmObject> Realm.copyFromRealm(obj: T, maxLimit: Int = Int.MAX_VALUE): T <T: RealmObject> Realm.copyFromRealm(objects: Iterable<T>, maxLimit: Int = Int.MAX_VALUE): List<T>
Note, Projections as a feature might solve most of the same use cases, so we should consider if this is a better way of doing it. See https://github.com/realm/realm-java/issues/5426
- is depended on by
-
RKOTLIN-137 Story: MVP Realm API
- Closed