What a pleasant surprise! I am glad that I asked the question, even 
though I thought I had googled through everything. Thanks a lot for 
pointing these goodies out.

Wanrong

SmileyChris wrote:
> Using the low-level cache [1] sounds like it'd work fine for you.
>
> from django.core.cache import cache
> key = 'complex-results-%s' % request.session.id
> results = cache.get(key)
> if results is None:
>     results = list(YourComplexQuery)
>     cache.set(key, results, 60*15)
> # then just use pagination to get the page [2]
>
> [1] http://www.djangoproject.com/documentation/cache/#the-low-level-cache-api
> [2] http://www.djangoproject.com/documentation/models/pagination/
> >
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to