You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Django 5.1 also introduces connection pool support for PostgreSQL. As the time to establish a new connection can be relatively long, keeping connections open can reduce latency.
To use a connection pool with psycopg, you can set the "pool" option inside OPTIONS to be a dict to be passed to ConnectionPool, or to True to use the ConnectionPool defaults:
From the Django 5.1 release notes:
https://docs.djangoproject.com/en/5.1/releases/5.1/#postgresql-connection-pools
The format does not lend itself well to be passed as query params in the DATABASE_URL.
Perhaps they can be passed in a new
extra_options
argument?The text was updated successfully, but these errors were encountered: