Skip to content
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

How can I measure query queue_wait time? #2979

Open
erfanium opened this issue Aug 23, 2024 · 0 comments
Open

How can I measure query queue_wait time? #2979

erfanium opened this issue Aug 23, 2024 · 0 comments
Labels

Comments

@erfanium
Copy link

erfanium commented Aug 23, 2024

How can I measure the time a query spends waiting in the connection pool queue when using the waitForConnections: true option in a connection pool?

I'm looking for to somehow do this:

const [result, meta] = await pool.query("SELECT * FROM ......")
console.lg(meta.queteWait) // if this value if bigger than 0, it means this query waited for a connection before being executed in mysql server.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants