cloudscribe / cloudscribe.templates

dotnet new templates for cloudscribe
Apache License 2.0
5 stars 3 forks source link

Add pooling options to the connection strings for Postgresql #101

Open SimonAnnetts opened 1 year ago

SimonAnnetts commented 1 year ago

In appsettings.json and appsetting.Development.json in a new cloudscribe project from the template, where Postgres is the selected EF storage option, add the following options to the example connection string:

Pooling=true;Minimum Pool Size=0;Maximum Pool Size=20;

This will enable connection pooling and sharing and reuse for Postgres database connections.