mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-15 15:11:01 -05:00
Disable unused SQLAlchemy configuration flags
We don't seem to use recorded queries or modification tracking anywhere in the app, and both features potentially increase memory usage. This removes deprecated SQLALCHEMY_COMMIT_ON_TEARDOWN options. It's been removed from the docs and the default matches the value we set anyway.
This commit is contained in:
@@ -117,9 +117,8 @@ class Config(object):
|
||||
AWS_REGION = 'eu-west-1'
|
||||
INVITATION_EXPIRATION_DAYS = 2
|
||||
NOTIFY_APP_NAME = 'api'
|
||||
SQLALCHEMY_COMMIT_ON_TEARDOWN = False
|
||||
SQLALCHEMY_RECORD_QUERIES = True
|
||||
SQLALCHEMY_TRACK_MODIFICATIONS = True
|
||||
SQLALCHEMY_RECORD_QUERIES = False
|
||||
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
||||
SQLALCHEMY_POOL_SIZE = int(os.environ.get('SQLALCHEMY_POOL_SIZE', 5))
|
||||
SQLALCHEMY_POOL_TIMEOUT = 30
|
||||
SQLALCHEMY_POOL_RECYCLE = 300
|
||||
|
||||
Reference in New Issue
Block a user