On Mon, Mar 11, 2013 at 9:38 AM, Matthew Summers <[email protected]> wrote:
> On Mon, Mar 11, 2013 at 3:46 AM, Aymeric Augustin
> <[email protected]> wrote:
>> Memcache backend, using python-memcache silently ignores data bigger than
>> 1Mb.
>>
>>
>> This is actually a limitation of memcached itself.
>>
>
> memcached can be invoked with -I <size> (that is a capital i) to
> change the size of the slab page. Default is 1m, minimum is 1k, max is
> 128m (from the man page). You may also want to pass -L to use large
> memory pages also. Now you have me wondering if the various python
> backends imposes some limit. That would be interesting to know.
>

Sadly, the python-memcached backend sets a var SERVER_MAX_VALUE_LENGTH
that artificially limits the cache size. Seems like this is a poor
assumption given that memcached is configurable.

See here: 
http://bazaar.launchpad.net/~python-memcached-team/python-memcached/trunk/view/head:/memcache.py#L92

Easy enough to patch ...

-- 
M. Summers

"...there are no rules here -- we're trying to accomplish something."
  - Thomas A. Edison

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to