-
-
Notifications
You must be signed in to change notification settings - Fork 564
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
Using Deferred produces memory leak? #972
Comments
Can you do a minimal reproduction of this and do some actual measurements? |
Yes, there is a synthetic example without DB and buffers:
It allocates around 4Mb memory. But when I start using Deferred (line 35) it allocates around 60Mb memory. |
@spawnia Hi there, |
I'm experiencing similar issues. However when I perform the exact same query there's a random chance of about 50% to get an out of memory error. The other 50% my query executes just fine. Also everything runs fine without Deferred but then the response time is unacceptibly high which is to be expected. |
@laurooyen let me know please if you find a solution. |
Any news on the topic? |
Hello, |
I'm using Deferred to avoid N+1 problem, but with a big amount of entities, it produces out of memory error.
Even without buffer it allocates a lot of memory:
Is there a way to use it more properly?
The text was updated successfully, but these errors were encountered: