Hi, I've a category tree (no more than 20 items) handled by one model. I was thinking store them inside the app_globals class. This category list is read only and the only changes only will be done directly into the database (websetup or something else), so each change will imply a restart of the application.
The tests that I've done show benefits in speed, these are the numbers (average): - First run (loads data): 0.000000 - Request init 0.070894 - Category data ready 0.083549 - Subcategories information loeaded 0.084456 - End - Second run (use data from app_globals): 0.000000 - Request init 0.003706 - Category data ready 0.011499 - Subcategories information loeaded 0.012326 - End Because I still feel like a newbie with Pylons, I'd like to get some feedback about this, and if is a good practice within pylons framework. Thanks, Martin -- Atte. MartÃn Marrese -- JID: kyheo at lugmen.org.ar MSN: martin at marrese.com.ar GTalk: marrese at gmail.com Skype: kyheo_ (with the _) -- Hay quien esta vida se la toma a broma y hay quien se suicida con balas de goma. (F&F) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
