On Mon, Mar 12, 2012 at 8:32 PM, Bruce Wade <bruce.w...@gmail.com> wrote:

> In youadworld we have a binary tree that is large, instead of loading it
> with every request to an action I'd rather have it loaded in memory, and
> only save to the database after the in memory version is updated. That way
> each new request only loads the logic that will act on the data models
> already in memory.


NOSQL databases like MongoDB or Redis is the way for doing this, it has
nothing to do with web2py. Using pure pymongo you can include python
dictionaries in to Mongo and then evaluate it again in to dicts, mongo is
very fast and the best solution i've found for this,

-- 

Bruno Rocha
[http://rochacbruno.com.br]

Reply via email to