Closed GoogleCodeExporter closed 8 years ago
[deleted comment]
Suggested a patch for httplib2 that would solve this issue:
http://code.google.com/p/httplib2/issues/detail?id=238
Original comment by someone1@gmail.com
on 5 Dec 2012 at 8:13
From that issue on httplib2, the suggested fix is to implement the screening of
values on size using a simple wrapper of memcache:
from google.appengine.api.memcache
class SizeLimitedMemCache(object):
def set(key, value, time=0, min_compress_len=0, namespace=None):
if len(value) < 1000000:
return memcache.set(key, value, time, min_compress_len, namespace)
else:
return False
def get(key, namespace=None, for_cas=False):
return memecache.get(key, namespace, for_cas)
def delete(key, seconds=0, namespace=None):
return memcache.delete(key, seconds, namespace)
Original comment by jcgregorio@google.com
on 7 Dec 2012 at 7:27
Setting maxResult on getQueryResults also avoids the issue.
Original comment by caioigle...@gmail.com
on 6 Jun 2014 at 8:33
Original issue reported on code.google.com by
someone1@gmail.com
on 5 Dec 2012 at 7:49