#11011: Memcached backend: pass parameters to memcache backend --------------------------+------------------------------------------------- Reporter: erny | Owner: nobody Status: new | Milestone: Component: Cache system | Version: 1.0 Keywords: memcached | Stage: Unreviewed Has_patch: 0 | --------------------------+------------------------------------------------- The problem: 1. Django instantiates memcache client w/o parameters, i.e. pickleProtocol=0 2. I compress a string to < 512K, binary pickle format 3. I encapsulate it inside a dummy object to prevent getting it converted to unicode 4. I pass it to cache.set 5. django does the set w/o min_compress_len. 6. Then python-memcache.set does (indirectly) o dumps with pickleProtocol=0, which results in a my < 512K to a >1,4M string and is silently discarted as max is 1 MB.
Possible solutions: * django memcached passes pickleProtocol option to memcached backend client * django memcached does implement splitting into chunks * I split it into smaller parts in the dummy objects -- Ticket URL: <http://code.djangoproject.com/ticket/11011> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" 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/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
