开发者

SQL Caching on Django

开发者 https://www.devze.com 2023-02-09 20:16 出处:网络
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 loca

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

0

精彩评论

暂无评论...
验证码 换一张
取 消