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

Destroy takes a very long time #305

Closed
Linuus opened this issue Mar 31, 2015 · 3 comments
Closed

Destroy takes a very long time #305

Linuus opened this issue Mar 31, 2015 · 3 comments
Labels

Comments

@Linuus
Copy link

Linuus commented Mar 31, 2015

Hi!

I'm using this gem to provide nested comments in a discussion. I have this setting:

acts_as_nested_set scope: [:commentable_id, :commentable_type], dependent: :destroy

I tried to destroy a discussion which had 300 comments, and it takes a looong time. It runs destroy on each comment and also updates lft and rgt.

Can I make improve this somehow? I tried to use dependent: :delete_all but it seems to do exactly the same...

@reneedv
Copy link

reneedv commented Apr 12, 2016

I'm having the same problem. Any updates on this?

@jackcasey
Copy link

Us too.

@stale
Copy link

stale bot commented Jan 10, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 10, 2021
@stale stale bot closed this as completed Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants