You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, very thrilled that this library exists. I saw this on hacker news the other day and benchmarked it against the library I currently use and it's loads faster. Excellent, so I'm moving over.
For a number of reasons, I'm not able to migrate most of the queries in the code base right away, so I'm utilizing sql.unsafe to unblock these queries for now (for a number of reasons, I can't use prepared statements in these places). However, every unsafe query instantiates a new Error object to capture the stack trace at the point of query creation, which is quite expensive.
This is the line that's dominating CPU usage (over half of query-related CPU usage):
First of all, very thrilled that this library exists. I saw this on hacker news the other day and benchmarked it against the library I currently use and it's loads faster. Excellent, so I'm moving over.
For a number of reasons, I'm not able to migrate most of the queries in the code base right away, so I'm utilizing sql.unsafe to unblock these queries for now (for a number of reasons, I can't use prepared statements in these places). However, every unsafe query instantiates a new Error object to capture the stack trace at the point of query creation, which is quite expensive.
This is the line that's dominating CPU usage (over half of query-related CPU usage):
postgres/src/query.js
Line 35 in a9bfd19
Is there a way I could disable this functionality? Thanks for your input and appreciate the hard work as making such an awesome library.
The text was updated successfully, but these errors were encountered: