-
Notifications
You must be signed in to change notification settings - Fork 32
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 to set isolation level using pools? #98
Comments
To support this, I think we'd need some way to register a function that's called every time a new DB connection is created. |
Maybe pool <- dbPool(
RSQLite::SQLite(),
on_create = \(con) DBI::dbExecute(con, "SET SOMETHING")
) |
Don't even need to change the class; just add a helper to |
Just discovered the 'pool' package yesterday, and I appreciate how much it has improved the performance of my Shiny app as it interacts with a PostgreSQL database. One minor suggestion for the |
I'm looking to set the isolation level of all read transactions of a pool to "READ UNCOMMITTED" while talking to our production database. I've looked into odbc's odbcSetTransactionIsolationLevel, however, it seems as though that will only work with connections directly, not pools.
Please advice on the best way to get this accomplished!
The text was updated successfully, but these errors were encountered: