X Tutup
Skip to content

Use AsyncMemcacheService for putAll()#298

Open
ZiglioUK wants to merge 1 commit intoobjectify:masterfrom
Sirtrack:AsyncMemcacheService
Open

Use AsyncMemcacheService for putAll()#298
ZiglioUK wants to merge 1 commit intoobjectify:masterfrom
Sirtrack:AsyncMemcacheService

Conversation

@ZiglioUK
Copy link

Trying to speedup putAll() requests when many entities are involved. Not sure what happens if the async request fails though. I've deployed it right now and I'll be monitoring it.

Trying to speedup putAll() requests when many entities are involved. Not sure what happens if the async request fails though
@ZiglioUK
Copy link
Author

ZiglioUK commented May 2, 2017

Unfortunately this seems to cause a lot of memcache exceptions like

com.google.appengine.api.memcache.MemcacheServiceException: Memcache getAll: exception getting multiple keys
at com.google.appengine.api.memcache.MemcacheServiceApiHelper$RpcResponseHandler.handleApiProxyException (MemcacheServiceApiHelper.java:69)
at com.google.appengine.api.memcache.MemcacheServiceApiHelper$1.absorbParentException (MemcacheServiceApiHelper.java:111)
at com.google.appengine.api.utils.FutureWrapper.handleParentException (FutureWrapper.java:52)
at com.google.appengine.api.utils.FutureWrapper.get (FutureWrapper.java:91)
at com.google.appengine.api.memcache.MemcacheServiceImpl.quietGet (MemcacheServiceImpl.java:26)
at com.google.appengine.api.memcache.MemcacheServiceImpl.getAll (MemcacheServiceImpl.java:64)
at com.googlecode.objectify.cache.KeyMemcacheService.getAll (KeyMemcacheService.java:87)
at com.googlecode.objectify.cache.EntityMemcache.cacheGetAll (EntityMemcache.java:353)
at com.googlecode.objectify.cache.EntityMemcache.putAll (EntityMemcache.java:292)
at com.googlecode.objectify.cache.CachingAsyncDatastoreService$3.success (CachingAsyncDatastoreService.java:279)
at com.googlecode.objectify.cache.CachingAsyncDatastoreService$3.success (CachingAsyncDatastoreService.java:1)
at com.googlecode.objectify.cache.TriggerSuccessFuture.trigger (TriggerSuccessFuture.java:37)
at com.googlecode.objectify.cache.TriggerFuture.isDone (TriggerFuture.java:87)
at com.googlecode.objectify.cache.TriggerFuture.get (TriggerFuture.java:102)
at com.googlecode.objectify.util.FutureHelper.quietGet (FutureHelper.java:26)
at com.googlecode.objectify.cache.CachingDatastoreService.get (CachingDatastoreService.java:161)
at com.googlecode.objectify.cache.CachingDatastoreService.get (CachingDatastoreService.java:147)
at com.googlecode.objectify.cache.CachingDatastoreService.get (CachingDatastoreService.java:128)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

X Tutup