3
votes

App Engine's memcache service provides the ability to get multiple keys in one API call (get_multi(['1', '2'])), and although other answers here have shown that there is no hard limit imposed in memcache (the example I saw tested out getting 100,000 keys in one call), obviously there are practical limits on App Engine as the number of keys grows and latency becomes unreasonable.

Has anyone run any benchmarks showing how long it takes to retrieve multiple keys as the number of keys grows into the thousands?

1
Are you asking about Memcached (code.google.com/p/memcached) or about the Memcache API provided in Google App Engine?Ibrahim Arief
App Engine's memcache service -- just updated the question to be more specific.JJ Geewax

1 Answers

2
votes

On Google App Engine, I believe the limit should be the size of the protocol buffer encoding the corresponding rpc, and according to the SDK source code: it is 32 << 20 = 32MB