Skip to content

How frequent are ping() / is_valid() called in Connection #3072

Answered by weiznich
wz-naquadah asked this question in Q&A
Discussion options

You must be logged in to vote

This query is executed by the r2d2 connection pool every time you checkout an connection from the pool. It is used to check if the connection still works.
You can reduce the number of times this query is executed by:

  • Not using the connection pool
  • Reduce the number of times you checkout a connection from the pool.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by wz-naquadah
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants