On Fri, Jun 3, 2011 at 11:50 PM, pbreit <pbreitenb...@gmail.com> wrote:

> I thnk we need more guidance on how to optimize performance and memory
> consumption.


*what I am doing:*

- In models only table definitions and configuration. Avoid the use of
models for classes, functions and other objects.
- Use of submodels when your design allows you to separate table definitions
- More use of modules, specially for user defined classes, functions and
large objects
- Use of an external cache system (memcached)
- Disable session in places where it is not needed (and there's no need to
auth) session.forget()
- Avoid to load too much values in dropdown widgets and lists/grids (do
pagination, load scrolling and autocompletation)
- Serve static files outside web2py
- Do not stay with sqlite in production

Reply via email to