Question About Checking Out Connection #2210
Replies: 1 comment
-
Checkout means a call to Database#synchronize that results in a connection being checked out from the pool. This happens internally whenever a connection is needed. It's not just for queries, as a connection may be needed to correctly escape an SQL string. If you set the value to Setting it to a value such as Note that if the disconnect happens while a connection is already checked out, that is not something the connection_validator extension can fix. It can only validate connections before checkout to make sure they are working. |
Beta Was this translation helpful? Give feedback.
-
I was wondering if someone could clarify what this statement means:
Specifically, what does
checkout
mean here? Does this mean Sequel will attempt to validate a connection before every query executed or something else?We are thinking this plugin will help us resolve our
Sequel::DatabaseDisconnectError
error's, but we don't know exactly what value to add here. Our infrastructure tends to proxy connections, thus we see underlyingPG::UnableToSend
errors pretty sporadically. We think setting it to-1
may be the best option here, but are unsure.Beta Was this translation helpful? Give feedback.
All reactions