20ms seems pretty reasonable to me. It's not that the cache is slow; it's that getting an object by Key is always very fast.
That being said, I remember there being some talk about us reducing the serialization and deserialization overhead for Memcache, but the performance will still be in the ballpark of milliseconds. Here are some memcache benchmarks: http://raibledesigns.com/rd/entry/performance_testing_memcached We've got a bit of work to do before we can get to 5ms read time. If you're performing multiple GETs and the 15ms overhead is impacting your request rendering, you may want to look into getAll() http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/memcache/MemcacheService.html Finally, the last thing you may want to look into benchmarking the speed of a Python Memcache API call. The serialization/deserialization overhead is lower, from what I remember. That would be a good indicator of whether or not Memcache meets your needs. On Thu, Jun 17, 2010 at 1:06 AM, EveningSun <[email protected]> wrote: > Hello, > > I'm new to app engine and I'm using Java, JPA. Currently I'm using the > cache API of app engine to cache the entities retrieved from > datastore. But according to AppStats every time I call cache.get() > there will be an RPC and will cost about 0.02 sec, pretty much the > same time as retrieving an entity by its key from the datastore > directly. > > So my question is, am I missing something? Costing 0.02 sec every time > to get an object from cache is too slow to me... > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
