Commit 818f9c55 authored by echel0n's avatar echel0n

Raised SQLite pool size to 200

parent 3e7748e5
......@@ -147,7 +147,7 @@ class SRDatabase(object):
@property
def engine(self):
if self.db_type == 'sqlite':
return create_engine('sqlite:///{}'.format(self.db_path), echo=False, pool_size=100, poolclass=QueuePool,
return create_engine('sqlite:///{}'.format(self.db_path), echo=False, pool_size=200, poolclass=QueuePool,
connect_args={'check_same_thread': False, 'timeout': 10})
elif self.db_type == 'mysql':
mysql_engine = create_engine('mysql+pymysql://{}:{}@{}:{}/'.format(self.db_username, self.db_password, self.db_host, self.db_port), echo=False)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment