Quantcast
Viewing all articles
Browse latest Browse all 7

Answer by santiagobasulto for Memcached best practices - small objects and lots of keys or big objects and few keys?

It depends on what are those numbers. If you could, for example, group them in ranges, then you could optimize the storage. If you could hash them, into a map, or hashtable and store that map serialized in memcached would be good to.

Anyway, you can save many little keys, just make sure you configure the slabs to have chunks with small size, so you will not waste memory space.


Viewing all articles
Browse latest Browse all 7

Trending Articles