Browse Source

Update web2py db.py (#2217)

You are using a debug setup.
The proposed changes should give some benefit
Michele Comitini 9 years ago
parent
commit
fd8640adc9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      frameworks/Python/web2py/app/app/models/db.py

+ 2 - 2
frameworks/Python/web2py/app/app/models/db.py

@@ -12,12 +12,12 @@
 ## app configuration made easy. Look inside private/appconfig.ini
 from gluon.contrib.appconfig import AppConfig
 ## once in production, remove reload=True to gain full speed
-myconf = AppConfig(reload=True)
+myconf = AppConfig(reload=False)
 
 DATABASE = None
 DATABASE_URI = "mysql://benchmarkdbuser:[email protected]:3306/hello_world"
 
-db = DAL(DATABASE_URI, fake_migrate_all=True)
+db = DAL(DATABASE_URI, fake_migrate_all=False, migrate_enabled=False, pool_size=8, lazy_tables=True)
 DATABASE = db
 ## store sessions and tickets there
 ##session.connect(request, response, db=db)