Closed (duplicate)
Project:
Memcache API and Integration
Version:
6.x-1.8
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Mar 2011 at 05:13 UTC
Updated:
28 Mar 2011 at 12:29 UTC
Hi,
As I checked the Memcache statistics, almost all getMulti calls missed.
I've been reading the codes for some time however I could not figure out how getMulti() works there... I still feel something wrong in the codes though...
getMulti cache_menu cache_menu-.wildcard-links%3Anavigation%3Apage-cid%3Aadm
For example, one getMulti call is like above. The cid is cut wrong I think, is this correct?
I'd appreciate if someone could explain how getMulti() helps in memcache module. Thanks!
Comments
Comment #1
js commentedI am confused by this also. Thanks for any insite.
Comment #2
fgmLook into dmemcache_get_multi() :
$statistics[$full_key] = array('getMulti', $bin, $full_key);
This is invoked in a loop on $keys, and then added in a loop too to $_memcache_statistics, instead of being in just one record. So stats are presented visually as multiple calls to get_multi although there is actually just one.
Comment #3
catchThese are checking for wildcard flushes against the bin. The miss rate isn't that much of a problem - some of these are supposed to miss, however this patch improves it a lot in my testing: #1103478: Skip some wildcard fetches. Marking this as duplicate.