Also, I think it is a benefit when working with 'web2py_components' that today on every ajax call executes all models again on a separate request, in a modular page built with 5 components we are going to have all models loaded for 5 different requests.
This new approach is a memory saver if you put specific code on to models/component folder.. -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] On Mon, May 2, 2011 at 12:08 AM, Bruno Rocha <rochacbr...@gmail.com> wrote: > Yes, lets say we have this app: > > models/general.py # this model and all models in root folder is always > executed > > models/default/something.py # this model and all on the same folder is only > executed when http://..../app/default/* is requested > > models/default/index/something.py # this model and all on the same fodler > is only executes when http://..../app/default/index is requested > > models/default/contact/something.py # this model and all on the same fodler > is only executes when http://..../app/default/contact is requested > > Imagine a bigger app with too many tables, too many validators etc. there > are no need to always load models of 'contact' page. > > > -- > Bruno Rocha > [ About me: http://zerp.ly/rochacbruno ] > > > > On Sun, May 1, 2011 at 11:50 PM, pbreit <pbreitenb...@gmail.com> wrote: > >> Am I understanding correctly that we could save memory by not loading all >> models on all page views? That seems like a reasonable objective. > > >