Thank you David for your post.

I agree with you I have a comment about this:


>    1. All models are loaded for each request
>       - Loading all ~100 table models took ~3 seconds per request.
>       - After reviewing this group I believe I understand why this is, 
>       but I do lament the fact that the model terminology will be inaccurate. 
>  I 
>       will have to load all my "real" models into seperate 
> modules<http://movu.ca/demo/article/show/11/model-less-apps-using-data-models-and-modules-in-web2py>
>  (Thanks 
>       for your great post about doing it though Bruno!) and the end result is 
>       that in any app of significant size, models will actually mean "request 
>       startup/initialization" and ../modules/datamodels will be my "real" 
> models. 
>    
> While it is true that models are executed at every request ~3 seconds 
is excessive. Make sure you turn migrations off and bytecode compile your 
apps.
More all requires = (...) that perform db access (for example IS_IN_DB) to 
the controllers where they are needed. Make sure you use conditional 
models, i.e. models in subfolders for each specific controllers and action. 
You probably do not need 100 models defined for each request.

Reply via email to