diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-10-28 07:33:15 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-10-28 07:33:15 +0200 |
commit | 70ebed1ac6bbb09b33b335f2c06ac73a25567337 (patch) | |
tree | 4588da8dc13cb6a132aab55656048da108e77e89 /src | |
parent | Updated some glyphicons. (diff) | |
download | newspipe-70ebed1ac6bbb09b33b335f2c06ac73a25567337.tar.gz newspipe-70ebed1ac6bbb09b33b335f2c06ac73a25567337.tar.bz2 newspipe-70ebed1ac6bbb09b33b335f2c06ac73a25567337.zip |
Try to limit the pool size and the number of connections that can be created after the pool reached its maximum size.
Diffstat (limited to 'src')
-rw-r--r-- | src/bootstrap.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bootstrap.py b/src/bootstrap.py index 912c35ae..ea3b5d05 100644 --- a/src/bootstrap.py +++ b/src/bootstrap.py @@ -34,6 +34,8 @@ else: application.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True application.config['SQLALCHEMY_DATABASE_URI'] \ = conf.SQLALCHEMY_DATABASE_URI + application.config['SQLALCHEMY_POOL_SIZE'] = 20 + application.config['SQLALCHEMY_MAX_OVERFLOW'] = 0 scheme, domain, _, _, _ = urlsplit(conf.PLATFORM_URL) application.config['SERVER_NAME'] = domain |