Replies: 1 comment
-
I have the same problem. Did you find a solution? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm writing a rust application library that needs a temporary in-memory database for the life of the application.
When creating an in-memory sqlite database with a connection pool, each connection is dropped after use and the pool size decreases. Eventually the pool size reaches 0 and any subsequent connections acquired from the pool are to a newly created in-memory database.
My understanding was that the connections would be returned to the pool so I'm not sure why the pool size decreases to 0. Do I need to spawn a keep-alive thread for the duration of the application?
I'm creating the pool like:
Beta Was this translation helpful? Give feedback.
All reactions