Skip to content

Commit

Permalink
[#271] Downgrade pool_size sql connection
Browse files Browse the repository at this point in the history
  • Loading branch information
wayangalihpratama committed Apr 26, 2024
1 parent e03e5b4 commit e21b4f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/db/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def get_db_url():
return DB_URL


engine = create_engine(get_db_url(), pool_size=10, max_overflow=20)
engine = create_engine(get_db_url(), pool_size=1, max_overflow=20)
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
Base = declarative_base()

Expand Down

0 comments on commit e21b4f2

Please # to comment.