Actualizar app.py
This commit is contained in:
2
app.py
2
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"),
|
||||
|
||||
Reference in New Issue
Block a user