Hi,
Nice Bruno, But those approachs how many traffic deals? By the way, is the first time that i notice about use the /modules approach to gain performance, are you measure the performance por models inside /model and /modules? To all: Mores experiences? Problem resolutions? Maybe put all of this inside a document will be great for help to many users when scalability is their minds. Saludos, -------------------------------- Alfonso de la Guarda Centro Open Source(COS) http://www.cos-la.net http://alfonsodg.net Twitter: @alfonsodg Redes sociales: alfonsodg Telef. 991935157 1024D/B23B24A4 5469 ED92 75A3 BBDB FD6B 58A5 54A1 851D B23B 24A4 On Fri, Jan 27, 2012 at 19:35, Bruno Rocha <rochacbr...@gmail.com> wrote: > I am using /models just to define small global functions and to set some > response and request keys. > > All my code including datamodels I am putting into /modules > > In my mind I changed the /models to /scripts or /batches so it is more easy > to understand why avoiding it. > > my current structure is: > > /modules/datamodels/someentity.py - Database definitions > > /modules/handlers/someentity.py - my code logic and template rendering > > /modules/helpers/* - miscelanious > > /modules/myappname.py - My.custom Auth, db, Mail, Service etc.. > > /controllers/someentytity.py - it will just be a point of entry, here I do > selective imports, intantiate the entities and call the template rendering. > > views files can be stored anywhere filesystem or database. > > http://zerp.ly/rochacbruno > > Em 27/01/2012 17:48, "Magnitus" <eric_vallee2...@yahoo.ca> escreveu: > >> >This is very good advice. I have moved many of my plugins and apps from >> > using models to modules because of the performance gain. There is nothing >> > wrong with the models implementation, but it's really meant to define >> > tables >> > and that's it. Functionality that doesn't belong in a controller should go >> > to modules.< >> >> Interesting, so to clarify: are you minimizing the amount of code into the >> model (limiting it to table definitions) or you avoid using a model at all?