Which way is better for running memcached?
Russ Garrett
russ at last.fm
Fri Feb 16 13:11:33 UTC 2007
Steven Grimm wrote:
> The second way is almost certainly better because you will be able to
> bundle more keys together in a "get" request when you want multiple
> pieces of data. Requesting two keys in one "get" request is *much*
> more efficient than requesting one key in each of two requests. The
> more memcached instances you have to spread your load across, the less
> chance that any two keys you request will live on the same server.
Reading this made me curious... How often do you end up using get_multi
on facebook anyway? It seems particularly hard to do in PHP without some
rather convoluted coding.
Russ Garrett
Last.fm Ltd.
russ at last.fm
More information about the memcached
mailing list