feat(backend): add option to disable postgres connection pooling
This commit is contained in:
parent
8054d68f79
commit
2323810b06
3 changed files with 4 additions and 0 deletions
|
@ -26,6 +26,7 @@ public class DatabaseContext : DbContext
|
|||
{
|
||||
var connString = new NpgsqlConnectionStringBuilder(config.Database.Url)
|
||||
{
|
||||
Pooling = config.Database.EnablePooling ?? true,
|
||||
Timeout = config.Database.Timeout ?? 5,
|
||||
MaxPoolSize = config.Database.MaxPoolSize ?? 50,
|
||||
MinPoolSize = 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue