Skip to content

Commit

Permalink
Update SQLALCHEMY_ENGINE_OPTIONS settings
Browse files Browse the repository at this point in the history
  • Loading branch information
bsatoriu committed Sep 26, 2024
1 parent aa03b56 commit 175df08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/maapapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
app.config['CAS_USERNAME_SESSION_KEY'] = 'cas_token_session_key'
app.config['SQLALCHEMY_DATABASE_URI'] = settings.DATABASE_URL
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
app.config['SQLALCHEMY_ENGINE_OPTIONS'] = {'isolation_level': 'AUTOCOMMIT', 'pool_size': 300}
app.config['SQLALCHEMY_POOL_TIMEOUT'] = 300
app.config['SQLALCHEMY_ENGINE_OPTIONS'] = {'isolation_level': 'AUTOCOMMIT', 'pool_size': 10, 'pool_pre_ping': True}
app.config['SQLALCHEMY_POOL_TIMEOUT'] = 30

app.app_context().push()
db.init_app(app)
Expand Down

0 comments on commit 175df08

Please sign in to comment.