hash - do similar key names affect memcache performance -
we have around 500k keys maintained 1 memcache server. around 499k keys stored in 1 slab [it slab #8].
the key names have format: bardata:currency[0099]yyyy-mm-dd_hh:mm:ss
currency1 of 23 different expressions [$eurusd, $gbpusd, ...]- the
[]hold 4 digit number alternates between 0001, 0003, 0005, 0010, 0015, 0030, 0060, 0090 , 0120 - the datetime format similar due fact data saved ascending continuous date period.
does affect performance when accessing memcache keys , should consider change key names in order spread on more slabs or can leave how is?
according answer https://stackoverflow.com/a/10139350 memcache stores items equal size in same slab. in case hashing key name not change slab because items have same size.
Comments
Post a Comment