-
Notifications
You must be signed in to change notification settings - Fork 288
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
[v3] Slowdown because of large source maps for queries that don't error #273
Comments
Thanks a lot for this issue. I'll give it a closer look Sunday. |
Yeah, that looks like an oversight on my part for I think it should be changed to get the stack only if the error is thrown either way. Don't know why I hadn't thought of that. |
Would you mind trying 0aacdb3 (current rewrite branch) out to see if there's an improvement? I have a vague memory testing this at some point only to find it didn't have much of an effect, but let's see :) If it's still just as bad, I think adding origin to the stack should be removed from |
It looks fixed. If it will happen again I will reopen. Thanks for fixing this! |
I assume because of
postgres/lib/index.js
Line 187 in 51d033c
stack traces are generated. It seems like the caching does not work as they seem to be re-generated for every request. nodejs/node#41541 also plays into this but still I don't understand why this is necessary. If you need a minimally reproducible example please tell me and I will try to provide one. The relevant thing is probably that cachedError should only calculate the stack trace the first time. What are some reasons this does not work? The queries are wrapped in a transaction. The following is the code that creates the pool.
The text was updated successfully, but these errors were encountered: