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

  • currency 1 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

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

android - Pass an Serializable object in AIDL -