Updated claude big changes

This commit is contained in:
2026-01-29 08:43:45 -05:00
parent ac4354716b
commit 764c094eed
6 changed files with 112 additions and 10 deletions

View File

@@ -19,7 +19,13 @@ url = URL.create(
port=ApplicationConfig.POSTGRES_PORT
)
engine = create_engine(url)
engine = create_engine(
url,
pool_pre_ping=True, # Verify connections before use
pool_size=5, # Maintain 5 connections in pool
max_overflow=10, # Allow 10 additional connections when busy
pool_recycle=3600, # Recycle connections after 1 hour
)
Session = sessionmaker(autocommit=False, autoflush=False, bind=engine)