Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django caching - Pickle is slow

Working on optimization of one web-site, I found, that finally pickling of QuerySets becomes bottleneck in caching, and no matter how clever your code could be, unpickling of relatively large QS in time of 1-2secs will kill all effort.
Does anybody encountered this?

like image 601
Gill Bates Avatar asked Sep 14 '25 04:09

Gill Bates


1 Answers

If you are currently just using pickle, might I recommend cPickle which is purported to be up to 1000 times faster.

like image 60
Tadgh Avatar answered Sep 15 '25 17:09

Tadgh