norm
norm copied to clipboard
[FR] connection pooling
I saw that there is this project that has conn pooling https://nimble.directory/pkg/pg also that JohnAD has plans to pull mongodb and conn pooling. Have we got plans for conn pooling for postgress/sqlite?
No plans so far. Feel free to contribute.
Just saw this issue. I wrote myself a connection pooling package for exactly this: https://github.com/PhilippMDoerner/TinyPool
Could it make sense to use the package in norm? Or possibly just copy paste some of the code as starting point for norm?
It would be awesome to support it in Norm. I see the package is compatible with Nim stdlib's DbConn type, so it shouldn't be too hard to use.
In that case my first approach would likely be copy pasting the code into norm, modifying it to better integrate with norm's logging and swapping out the std/db_* libs with ndb/sqlite and ndb/postgres. Sound good?
nice one moigagoo