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? #113

Open
camhashemi opened this issue Nov 6, 2020 · 0 comments
Open

question: are connections pooled per prepared statement? #113

camhashemi opened this issue Nov 6, 2020 · 0 comments

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?

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