realm-java icon indicating copy to clipboard operation
realm-java copied to clipboard

Support for cascading deletes

Open cmelchior opened this issue 11 years ago • 66 comments

It should be possible to delete linked objects as well using some defined policy.

Suggestion 1: Possible policies:

  • NEVER
  • IF_LAST_LINK
  • ALWAYS

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

cmelchior avatar May 11 '15 06:05 cmelchior

Core issue: https://github.com/realm/realm-core/issues/746

kneth avatar May 21 '15 12:05 kneth

Any progress in this issue? I have 3step hierarchy of linked objects, I have dozen of linked RealmList in last step of hierarchy. - that is wrappers of primitive objects that even do not have @primarykey - coz realm does not support list of primitives. It is tonne of biodegradable code for remove all linked objects.

olbogdan avatar Sep 30 '15 12:09 olbogdan

+1

o15a3d4l11s2 avatar Dec 10 '15 20:12 o15a3d4l11s2

+1

martygriffin avatar Dec 15 '15 15:12 martygriffin

+1

draskosaric avatar Dec 30 '15 13:12 draskosaric

+1

ghost avatar Jan 11 '16 13:01 ghost

+1

ninjazoete avatar Jan 11 '16 14:01 ninjazoete

+1

cooler333 avatar Jan 13 '16 14:01 cooler333

+1

dltlr avatar Jan 14 '16 18:01 dltlr

+1

nullable-eth avatar Jan 14 '16 18:01 nullable-eth

+1

luhui avatar Jan 19 '16 02:01 luhui

+1

betaSavvy avatar Jan 23 '16 13:01 betaSavvy

+1

bcamur avatar Jan 27 '16 14:01 bcamur

+1

alexburkhay avatar Jan 28 '16 11:01 alexburkhay

+1

meilers avatar Feb 02 '16 03:02 meilers

Any updates?

dongseok0 avatar Feb 02 '16 03:02 dongseok0

Really sorry to keep you all in the cold on this feature. It's likely going to be one of the first features that we will tackle after our current P1 backlog issues are handled. Thanks for hanging in there!

bmunkholm avatar Feb 02 '16 08:02 bmunkholm

+1

Farmertjes avatar Feb 03 '16 09:02 Farmertjes

+1

JulienDev avatar Feb 11 '16 10:02 JulienDev

+1

fabiosassu avatar Feb 12 '16 23:02 fabiosassu