3 ms·
> Most important is the cache’s miss rate: how frequently do we need to regenerate data? It is the miss rate that ultimately impacts site performance. Not so f
by anamax 16y ago
> Most important is the cache’s miss rate: how frequently do we need to regenerate data? It is the miss rate that ultimately impacts site performance.
Not so fast. While the miss rate determines how much you need to regenerate, the miss time can have a huge effect on the average access time, which is what your users see.
If a is the average access time and m is the miss time (both in units of hit time), the required hit rate is (m-a)/(m-1). For largish m and reasonable a, the required hit rate can be quite high. (Memcache can be very fast relative to query+render.)
Things are more complicated when people are involved because people don't task-switch while waiting, they wander off. For example, you might want to cache so frequently accessed things have a higher miss rate. Why? Because the occasional long-access time on something that you do frequently can be seen as a glitch while a long-access time on something that you're doing for the first time (or rarely) looks like a broken system.