0

I am developing an api on google appengine django nonrel that will serve a lot of requests. I would like to cache repeated requests. It is estimated that there will be some really frequent queries to the api, and I would like to be able to find out what these queries are on the fly so that I may pre-cache them. Is there a way of getting the most frequent memcache keys?

endre
  • 1,363
  • 1
  • 11
  • 22

2 Answers2

1

Cache everything that might be frequent, and let Memcache's LRU policy evict items that aren't accessed frequently enough to warrant remaining in the cache.

Nick Johnson
  • 100,655
  • 16
  • 128
  • 198
0

Presuming you mean "the most frequent datastore queries", appstats is probably what you need.

Daniel Roseman
  • 588,541
  • 66
  • 880
  • 895