Replies: 3 comments 4 replies
-
This feature is partly described in #167 I don't want this feature to be a builtin feature of So yes, it is a planned feature. I just haven't found the time to properly implement it. Some time ago I added an experimental version of this feature (see #131), but I didn't like the way it turned out. That's why it never got merged and is just there to remind me that some serious thought needs to be done to get this right. My current thoughts on how this could be implemented is the following:
With those two methods, the return callback and |
Beta Was this translation helpful? Give feedback.
-
I just wanted to piggy back off of this. It's likely that I have misread or missed the documentation, but how can one specify how long a connection in the pool can sit without being used before being killed / dropped? Right now I can spawn many connections in my pool but I do not see any simple or clever way of killing the connection if it's sitting there for too long without being used. |
Beta Was this translation helpful? Give feedback.
-
Tracking issue for ahead of time object creation/recycling: |
Beta Was this translation helpful? Give feedback.
-
Hi!
I was wondering if you plan to implement maximum and idle lifetimes in the pool? Right now it seems like the checking for bad connections is done lazily at connection fetch. I know for example that sqlx runs a low priority task to check the health of connections in the background and respect the max/idle lifetimes.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions