Question: How to calculate how long my query waited for a connection to execute it ? #904
Replies: 2 comments 4 replies
-
There's nothing for this with the underlying driver, but this library exposes some metrics, ones used by pg-monitor. |
Beta Was this translation helpful? Give feedback.
3 replies
-
As I commented there, you have the original pool object, so you can do as you like ;) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let say i have set connectionTimeoutMillis to 0 & pg-pool count is set to 20. Now i'm getting 30 concurrent request, first 20 of them already executing by using the connection pool, but last 10 requests will wait for the some of the connection to be freed. How to calculate how long my query waited for connection from pool/to become idle, before actually executing the query for last 10 requests ?
Is this something we can calculate using some metrics exposed by node-postgres ?
Beta Was this translation helpful? Give feedback.
All reactions