Add fancy caching for large blocks of data
Updated 2 months, 3 weeks ago
| David Trowbridge | Reviewers | ||
| trunk | reviewboard | ||
| None | Navi | ||
memcached will only cache chunks of data below 1M. This is kind of crappy, since some of our files can be larger than 1M, and those are the ones which take the longest to fetch, patch, diff, and render. This change adds a large_data keyword to cache_memoize, which will do some fancy pickling, compression and splitting to stuff these large blocks into the cache.
Looked at my giant diff and saw that things were getting cached correctly.
Posted 2 months, 3 weeks ago (October 14th, 2008, 4:28 p.m.)
-
Loading diff fragment...
-
Can you add a small comment documenting the resulting size?
Loading diff fragment...
Can you space this out a little, put blank lines before/after each block? Also, we may want to use the multi-key get capabilities to get all the data in one go, since we know all the keys up-front.