Open cmelchior opened 9 years ago
+1
+1
+1
Suggestion 2: Try to provide the same semantics as the GC, i.e. root objects and strong/weak references. Once an object no longer has any references it is deleted.
This reminds me of JPA's orphanRemoval=true
.
+1
+1
+1
+1
+1.
+1
+1
+1
+1
Man, these +1s are adding too much noise, they don't add any value to the conversation and they could just use the upvote on the top post...
The current answer is provided here: https://github.com/realm/realm-java/issues/2717#issuecomment-255973863
Is there a chance this can get locked like https://github.com/realm/realm-java/issues/575 ?
And it depends on https://github.com/realm/realm-core/issues/746
Reflected in AHA under: https://realmio.aha.io/requirements/PROD-13-2 As Kenneth outlined, this has a dependency on core support, which is in the works. ETA ~Q4-18.
It should be possible to delete linked objects as well using some defined policy.
Suggestion 1: Possible policies:
Suggestion 2: Try to provide the same semantics as the GC, i.e. root objects and strong/weak references. Once an object no longer has any references it is deleted.
Cocoa issue: https://github.com/realm/realm-cocoa/issues/1186