if lazy_define_table is called every time then lazy_tables is probably False

did you set it explicitly to True?

DAL(..., lazy_tables=True)


2014-02-13 21:51 GMT+01:00 Michael Ellis <michael.f.el...@gmail.com>:

>
> On Thursday, February 13, 2014 2:49:56 PM UTC-5, Niphlod wrote:
>>
>> migrate=False still instantiate the model....it just doesn't trigger any
>> migration logic.
>> the better shot at minimizing times in this case seems to be
>> lazy_tables=True
>>>
>>>
>>>
>>> The profiler  output makes it seem that this is happening already.  I
> see dal.lazy_define_table being called by dal.define_table() in all cases.
>  This is the first time I've used the profiler and runsnakerun, so I might
> be misinterpreting the results.  I'm attaching tarball of the profiler
> output if anyone wants to take a look.
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to