Actualizar app.py
This commit is contained in:
2
app.py
2
app.py
@@ -3,7 +3,7 @@ import psycopg2
|
|||||||
from psycopg2 import pool
|
from psycopg2 import pool
|
||||||
|
|
||||||
# Crear un pool de conexiones global
|
# Crear un pool de conexiones global
|
||||||
connection_pool = psycopg2.pool.SimpleConnectionPool(
|
connection_pool = psycopg2.pool.ThreadedConnectionPool(
|
||||||
minconn=1,
|
minconn=1,
|
||||||
maxconn=10, # Define el tamaño máximo del pool
|
maxconn=10, # Define el tamaño máximo del pool
|
||||||
dbname=os.getenv("DBNAME"),
|
dbname=os.getenv("DBNAME"),
|
||||||
|
|||||||
Reference in New Issue
Block a user