realm / realm-java

Realm is a mobile database: a replacement for SQLite & ORMs
http://realm.io
Apache License 2.0
11.47k stars 1.75k forks source link

Support for cascading deletes #1104

Open cmelchior opened 9 years ago

cmelchior commented 9 years ago

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

kneth commented 9 years ago

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

olbogdan commented 9 years ago

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.

o15a3d4l11s2 commented 8 years ago

+1

martygriffin commented 8 years ago

+1

draskosaric commented 8 years ago

+1

ghost commented 8 years ago

+1

ninjazoete commented 8 years ago

+1

cooler333 commented 8 years ago

+1

dltlr commented 8 years ago

+1

nullable-eth commented 8 years ago

+1

luhui commented 8 years ago

+1

betaSavvy commented 8 years ago

+1

bcamur commented 8 years ago

+1

alexburkhay commented 8 years ago

+1

meilers commented 8 years ago

+1

dongseok0 commented 8 years ago

Any updates?

bmunkholm commented 8 years ago

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!

Farmertjes commented 8 years ago

+1

JulienDev commented 8 years ago

+1

fabiosassu commented 8 years ago

+1

AlokBansal8 commented 8 years ago

+1

narciero commented 8 years ago

+1

BartBM commented 8 years ago

+1

SilkSama commented 8 years ago

+1

martygriffin commented 8 years ago

+1

nguyenhuynhkhanh commented 8 years ago

+1

o15a3d4l11s2 commented 8 years ago

I also needed such a feature and achieved it quite easy, doing the following in iOS:

marchy commented 8 years ago

+1

vonox7 commented 8 years ago

+1

functionaldude commented 8 years ago

+1

cmelchior commented 8 years ago

See https://github.com/realm/realm-java/issues/2717 for ideas on how to implement this now, until we can add proper support for it.

azlanjamal commented 8 years ago

+1

tstanik commented 8 years ago

+1

xiaogu-space commented 8 years ago

+1

feresr commented 8 years ago

+1

kantanta commented 8 years ago

+1

D00mch commented 8 years ago

+1

Unihilator commented 8 years ago

+1

druvv commented 8 years ago

+1

lukasinschlag commented 8 years ago

+1

ghost commented 8 years ago

+1

sudhiryadav commented 8 years ago

+1

iamcrypticcoder commented 8 years ago

+1

ZeDzislaw commented 8 years ago

+1

rustproofFish commented 8 years ago

+1

iostreamchik commented 8 years ago

+1

cknibbe commented 8 years ago

+1

GoNinja commented 8 years ago

+1

MaximeChaillou commented 8 years ago

+1

r-cohen commented 8 years ago

++