SQL Caching on Django
I have a friend and he's developing a prototype website off his laptop. It's a cool site, very data driven and does some cool stuff on the fly. Problem is, it takes like 10 seconds to load on his local machine.
Is there a way he can cache the result开发者_如何转开发s of the queries? There are probably only a few thousand potential queries that need to be made and the resultant data won't change.
Google gave me nothing, so I turn to humans. Any ideas?
Maybe johnny-cache?
Also, please look at this article, it covers Django QuerySet caching, and it’s really detailed.
? django can cache queries : http://docs.djangoproject.com/en/dev/topics/cache/#the-low-level-cache-api
精彩评论