Closed GoogleCodeExporter closed 9 years ago
Objectify caches negative results, the value will be 'NEGATIVE'. As with
everything in the Objectify cache, the key is whatever memcache does when you
use the native datastore Key object.
If you are seeing lots of requests for a single memcache key, it's because your
code is making lots of requests for that key. 'NEGATIVE' indicates that there
is nothing in the datastore; without the caching, you would be making fetches
to the datastore.
Original comment by lhori...@gmail.com
on 30 Apr 2013 at 3:05
Thanks for the quick response. We do have a few entities that could go
considered as "global" objects which we have moved in to sharded memcache keys,
however this appears to be one we missed.
This may not be an objectify problem, but would you by chance have any
suggestions on how we could decode the key in to something usable? Or, hook in
to either the Objectify API, or underlying memcache API and get an idea of
which calls are hammering a single key?
Thanks for your time and help.
Original comment by rxre...@gmail.com
on 30 Apr 2013 at 3:18
Unfortunately that key is actually a sha1 hash of the java-serialized key,
which is what GAE's memcache service does for random object keys. This is not a
particularly good strategy so thank you for calling that to my attention.
If you checkout and build master, Objectify will stringify the keys before
putting them in memcache. With this you will be able to determine exactly what
key is being stored.
For further discussion, please post to the objectify google group.
Original comment by lhori...@gmail.com
on 30 Apr 2013 at 7:26
Original issue reported on code.google.com by
rxre...@gmail.com
on 30 Apr 2013 at 12:32Attachments: