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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to