Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for cascading deletes #1104

Open
cmelchior opened this issue May 11, 2015 · 66 comments · May be fixed by #5678
Open

Support for cascading deletes #1104

cmelchior opened this issue May 11, 2015 · 66 comments · May be fixed by #5678

Comments

@cmelchior
Copy link
Contributor

cmelchior commented May 11, 2015

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: realm/realm-swift#1186

@kneth
Copy link
Member

kneth commented May 21, 2015

Core issue: realm/realm-core#746

@olbogdan
Copy link

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
Copy link

+1

12 similar comments
@martygriffin
Copy link

+1

@draskosaric
Copy link

+1

@ghost
Copy link

ghost commented Jan 11, 2016

+1

@ninjazoete
Copy link

+1

@cooler333
Copy link

+1

@dltlr
Copy link

dltlr commented Jan 14, 2016

+1

@nullable-eth
Copy link

+1

@luhui
Copy link

luhui commented Jan 19, 2016

+1

@betaSavvy
Copy link

+1

@bcamur
Copy link

bcamur commented Jan 27, 2016

+1

@alexburkhay
Copy link

+1

@meilers
Copy link

meilers commented Feb 2, 2016

+1

@dongseok0
Copy link

Any updates?

@bmunkholm
Copy link
Contributor

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!

@iostreamchik
Copy link

+1

3 similar comments
@cknibbe
Copy link

cknibbe commented Aug 31, 2016

+1

@GoNinja
Copy link

GoNinja commented Sep 2, 2016

+1

@MaximeChaillou
Copy link

+1

@r-cohen
Copy link

r-cohen commented Sep 7, 2016

++

@carloseduardosx
Copy link

+1

2 similar comments
@maksimusenko
Copy link

+1

@dawidhyzy
Copy link

+1

@Zhuinden
Copy link
Contributor

Zhuinden commented Oct 5, 2016

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.

@michaelpace
Copy link

+1

3 similar comments
@ashuBold
Copy link

+1

@TheBogueRat
Copy link

+1

@pofit
Copy link

pofit commented Oct 26, 2016

+1

@CaliosD
Copy link

CaliosD commented Nov 2, 2016

+1.

@Zeyad-37
Copy link

Zeyad-37 commented Nov 4, 2016

+1

3 similar comments
@fishfisher
Copy link

+1

@timothycosta
Copy link

+1

@angad737
Copy link

angad737 commented Nov 8, 2016

+1

@Zhuinden
Copy link
Contributor

Zhuinden commented Nov 8, 2016

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: #2717 (comment)

Is there a chance this can get locked like #575 ?

@realm realm locked and limited conversation to collaborators Nov 8, 2016
@kneth
Copy link
Member

kneth commented Nov 8, 2016

And it depends on realm/realm-core#746

@roberhofer roberhofer self-assigned this Jun 14, 2018
@roberhofer
Copy link

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.

@roberhofer roberhofer added the Aha label Jul 30, 2018
@RealmBot RealmBot removed the Blocked This issue is blocked by another issue label Sep 24, 2020
@bmunkholm bmunkholm removed the Aha label Dec 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.