Ok, so I've read this topics(and also the django-cache-utils, although I didn't understand this one much). So I can serialize the objects and save them in cache, ok, but, when the cache timesout I'll lose the data that was changed and saved in the cache, isn't it? Is there a way to to this in the cache? To tell him that when about to delete by timeout, instead should update the DB? Or I need to create my own cache?
On 18 ago, 11:36, Andre Terra <[email protected]> wrote: > You can use the cache framework for pretty much anything you want, including > saving serialized results of calculations, querysets and whatnot. > > Please > read:https://docs.djangoproject.com/en/dev/topics/cache/https://docs.djangoproject.com/en/dev/topics/cache/#the-low-level-cac...https://docs.djangoproject.com/en/dev/topics/serialization/ > > And check out django-cache-utils, a third party app which spares you from > reinventing the wheel:http://bitbucket.org/kmike/django-cache-utils/ > > Cheers, > AT > > On Thu, Aug 18, 2011 at 10:22 AM, Felipe Arruda < > > > > > > > > [email protected]> wrote: > > Hi there, I was doing some project recently and faced a problem of > > performance. > > I need to be able to do a lot of access to some information on the DB, > > almost all the time, and doing so seams to be taking too long. > > > Is it possible do do something like this: > > Get the infos from the BD and put them in memory, then when I save() a > > model or get()/filter() it will get from the memory. > > And from time to time, the memory will update this info in the DB. > > > If this is possible, then how should I do it? > > > Using the Cache Framework? Ins't this one just for static files? > > Thanks for the help! > > > -- > > You received this message because you are subscribed to the Google Groups > > "Django users" 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/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" 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/django-users?hl=en.

