Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

question: are connections pooled per prepared statement? #112

Closed
camhashemi opened this issue Nov 6, 2020 · 1 comment
Closed

question: are connections pooled per prepared statement? #112

camhashemi opened this issue Nov 6, 2020 · 1 comment

Comments

@camhashemi
Copy link

At the database level, a prepared statement is bound to a single database connection.

When you execute the Stmt, it tries to use the connection. If it’s not available because it’s closed or busy doing something else, it gets another connection from the pool and re-prepares the statement with the database on another connection.

Is that any other existing connection? Or does the database create a new connection?

@camhashemi
Copy link
Author

this issue is a duplicate of #113

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant