-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Prepared Statements cache is unbounded #114
Comments
/cc @bcardiff |
@haffla as a mitigation use There is an idea of putting a max life span for the connections, but clearing the statement cache should also be considered. |
It's weird though, in my example heap grows by about 140K per query but the query string is only about 5K. |
Why don't I have this problem if I insert into a MySQL database, though, as I described in will/crystal-pg#191? Anyway I will try |
Confirming that disabling prepared statements mitigates the problem. But: I am now actually not using
and then inside the loop
There is no reason to cache anything here. |
Checking in here! It appears I am running into this issue as well. Interestingly, the queries I am running are not dynamic (need to verify there isn't anything sneaky) - so I should have a very high hit-rate in My current theory right now, is there is some interplay between the Either way - this should be fairly straight forward to verify so stay tuned... Update: I'm glad I called it a theory! This ☝️ might be related to the issue, but appears to be tangential to the issue I am personally experiencing. I'll leave the comment here in case it is of use (so long as it is clear it is closer to "field notes" than "verified assertion"). |
See will/crystal-pg#191
The text was updated successfully, but these errors were encountered: