Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pg-pool have removed `min` option (brianc/node-pg-pool#135). Our implementation partially implements the original pro-active pooling logic. However, unlike the original implementation, we only pool new queries when another query is complete. The benefit of this approach is that if the process is otherwise idle, there are no unnecessary sockets being kept. Equally, the moment a single query is issued, we ensure that we bring the pool size to the minimum number of connections expected.
- Loading branch information
Showing
2 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters