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

Timeouts when deleting a page with lots of snapshots #699

Open
Kat-Alo opened this issue Sep 29, 2023 · 0 comments
Open

Timeouts when deleting a page with lots of snapshots #699

Kat-Alo opened this issue Sep 29, 2023 · 0 comments

Comments

@Kat-Alo
Copy link

Kat-Alo commented Sep 29, 2023

For a trial of Klaxon, we added a page that would change often enough to trigger an alert for every page check. Now, we want to delete the page, but because it has so many snapshots, the deletion operation is timing out.

I believe this is a result of the slow cascading deletions noted in this blog post. It seems the authors have created a gem that nullifies the relationship between parent and child records (in this case page and page snapshots) and then destroys the child records asynchronously.

Given that the model relationships for Klaxon aren't too complicated, I'm wondering if another viable solution would be to delete instead of destroy the records. I'm not very Rails-savvy, so maybe that's a poor option.

Planning to give this gem a go and will open a PR if it works out for us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant