Try to add lazy_tables=True to DAL. Like: db = DAL('sqlite://storage.sqlite', migrate=False, lazy_tables=True)
Paolo On Tuesday, January 15, 2013 10:06:03 AM UTC+1, Daniel Gonzalez wrote: > > No imports in the code-area profiled. Also, I am testing some requests, > but the time I am measuring is the time spent in the code-area that I have > provided. That is, in the define tables code. The controllers are of course > making use of the table definitions later, but that is not what I am > measuring. > > I have put a "print time.time()" before and after the "define tables" > code. So no controller is involved in my measurements. > > On Tuesday, January 15, 2013 9:56:57 AM UTC+1, rochacbruno wrote: >> >> It will run only when called! >> >> But if he is testing a form, the problem maybe there. >> >> There are some imports? >> > --