diff --git a/app.py b/app.py index c228c54..e024ab0 100644 --- a/app.py +++ b/app.py @@ -3,7 +3,7 @@ import psycopg2 from psycopg2 import pool # Crear un pool de conexiones global -connection_pool = psycopg2.pool.SimpleConnectionPool( +connection_pool = psycopg2.pool.ThreadedConnectionPool( minconn=1, maxconn=10, # Define el tamaño máximo del pool dbname=os.getenv("DBNAME"),