> > To cut define_table execution time you could try to put migrate=False, > fake_migrate=False, when you call the DAL since in production the > model does not change (usually) at runtime. >
Yes, definitely turn off migrations -- you can do so for the entire connection via: db = DAL(..., migrate_enabled=False) Also, compile the app -- I believe that particularly speeds up the views. Anthony