I’m using the Npgsql driver in a .NET application to connect to a CockroachDB instance. I set Minimum Pool Size=100
in the connection string, expecting the pool to pre-open 100 connections at application startup.
However, connections are only opened when database operations occur. Is there a way to force the pool to open and maintain the minimum number of connections immediately, regardless of DB activity?
Environment:
- .NET version:
.Net Framework 4.8.1
- Npgsql version:
8.6
- CockroachDB version:
24.3.0