Skip to content

Commit

Permalink
fix: Increase pool size to mitigate overflow (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX authored Oct 23, 2023
1 parent b69acfa commit 5aed3d6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions data/database.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker

engine = create_engine("sqlite:///persistance/database.db")

Session = sessionmaker(bind=engine)
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker

engine = create_engine("sqlite:///persistance/database.db", pool_size=20)

Session = sessionmaker(bind=engine)

0 comments on commit 5aed3d6

Please sign in to comment.