mirror of
https://github.com/omnara-ai/omnara.git
synced 2025-08-12 20:39:09 +03:00
revert db
This commit is contained in:
@@ -5,16 +5,7 @@ from sqlalchemy.orm import Session, sessionmaker
|
||||
|
||||
from ..config.settings import settings
|
||||
|
||||
# For Supabase session mode pooler (port 5432)
|
||||
# Single process configuration - maximize pool usage
|
||||
engine = create_engine(
|
||||
settings.database_url,
|
||||
pool_size=10, # Use most of the 15 connection limit
|
||||
max_overflow=4, # Allow overflow up to 14 total (under 15 limit)
|
||||
pool_timeout=10, # Fast timeout for better responsiveness
|
||||
pool_recycle=3600, # Recycle after 1 hour
|
||||
pool_pre_ping=False, # Skip pre-ping since Supabase pooler handles connection health
|
||||
)
|
||||
engine = create_engine(settings.database_url)
|
||||
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user