Open bruceferguson2 opened 3 months ago
Hello I am facing this issue too. Do we have any update on this issue ? This seems to be critical.
it is very unlikely this will be changed, the library is now in maintenance - I will try and build latest version binaries to keep up to date with new node releases, but i do not have anything like the time anymore to go beyond that.
if anyone wishes to take it on, please fork and continue.
I noticed while watching my DB and also watching debug events:
It seems like the grow function should have something like:
if (idle.length > 0) { return; }
let needed = "some-logic-for-computing-needed connections"
Then use "needed" in the for loop to add new connections to the pool.
Perhaps the logic could be parameterized with something like: percentageToAdd minToAdd maxtoAdd
Just thinking off the top of my head.