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.

Reply via email to