Skip to content

Commit

Permalink
Reduce pool size to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
kongzii committed Dec 5, 2024
1 parent beacb48 commit 79d3d34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion prediction_market_agent_tooling/tools/db/db_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, api_keys: APIKeys | None = None) -> None:
sqlalchemy_db_url.get_secret_value(),
json_serializer=json_serializer,
json_deserializer=json_deserializer,
pool_size=10,
pool_size=1,
pool_recycle=3600,
echo=True,
)
Expand All @@ -52,6 +52,7 @@ def get_connection(self) -> Generator[Connection, None, None]:
def create_tables(
self, sqlmodel_tables: Sequence[type[SQLModel]] | None = None
) -> None:
# Determine tables to create
if sqlmodel_tables is not None:
tables_to_create = []
for sqlmodel_table in sqlmodel_tables:
Expand Down

0 comments on commit 79d3d34

Please sign in to comment.