-
Notifications
You must be signed in to change notification settings - Fork 577
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
Saving slugs results in memory exhaustion #2693
Comments
Ugh, this sounds really bad, we'll be looking into it asap. Does this PR help by any chance? I have not reviewed it yet. |
Very likely yes, not sure if the PR solves it, but the issue should definitely because of the same thing, I have been looking at the query log and it seems 3 queries are duplicated (because a function is called multiple times when the result could be cached) in the code path and the one retrieving the list of all the existing ids is not even needed (it can be inlined with a not condition on the fk), I will send in a PR with those improvements I think we also should add a migration to remove all the duplicated records |
Description
Just saving a non unique slug in a database that has a lot of entries (Not like an insane amount, just 500) seems to result in a lot of queries and then memory exhaustion
I already increased the memory to 512Mo and it was ok for a few weeks, but now it exceeds the 512Mo limit again
Something is terribly wrong in there, here is the query trace from sentry as we can see there is some huge queries being run
I will try to investigate the cause
The text was updated successfully, but these errors were encountered: