Skip to content

Commit 51aac5b

Browse files
committed
Update decode_json and app.config updating.
1 parent e097682 commit 51aac5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

credenza/api/session/storage/backends/postgresql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def __init__(self, url: str = "postgresql:///credenza", idle_timeout: int = 60,
7878
# TODO: add configuration for minconn, maxconn here?
7979
self.dsn = url
8080
minconn = 1 # need to keep an idle connection open to really benefit from pool?
81-
maxconn = 6
81+
maxconn = 32 # temp - fix to smaller default after configurability is in place
8282
self.pool = psycopg2.pool.ThreadedConnectionPool(minconn, maxconn, dsn=url, connection_factory=connection)
8383
logger.debug(f"Using threaded connection pool for PostgreSQL: minconn={minconn} maxconn={maxconn} url={self.dsn}")
8484
self.idle_timeout = idle_timeout

0 commit comments

Comments
 (0)