Une nouvelle version du portail de gestion des comptes externes sera mise en production lundi 09 août. Elle permettra d'allonger la validité d'un compte externe jusqu'à 3 ans. Pour plus de détails sur cette version consulter : https://doc-si.inria.fr/x/FCeS

Commit 22b67f2d authored by RyanHerb's avatar RyanHerb
Browse files

db.py defs.py.sample add defs for db pool size

Due to database pool size being hardcoded to 1, concurrent requests were
not possible and therefore slowed the app down considerably when several
users were trying to use the app at the same time. Often resulting in
timeouts.
Adding this parameter allows us to manage the pool size easily and
ensure users can post requests at the same time.
parent 4642c271
......@@ -39,7 +39,7 @@ request.requires_https()
if not request.env.web2py_runtime_gae:
## if NOT running on Google App Engine use SQLite or other DB
db = DAL(defs.DB_ADDRESS,pool_size=1,check_reserved=['all'])
db = DAL(defs.DB_ADDRESS,pool_size=defs.DB_POOL_SIZE,check_reserved=['all'])
## db = DAL('mysql://root:password@localhost/vidjil5',pool_size=1,check_reserved=['all'])
else:
## connect to Google BigTable (optional 'google:datastore://namespace')
......
......@@ -14,6 +14,8 @@ ADMIN_EMAILS = ['notifications@vidjil.org']
DB_ADDRESS = 'sqlite://storage.sqlite'
DB_ADDRESS = 'mysql://vidjil:XXXXXXXX@localhost/vidjil'
DB_POOL_SIZE = 4
### Backup file
DB_BACKUP_FILE = 'backup.csv'
......
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