Skip to content

Timeouts when deleting a page with lots of snapshots #699

@Kat-Alo

Description

@Kat-Alo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions