summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAnssi Kääriäinen <akaariai@gmail.com>2012-06-02 04:13:36 +0300
committerAnssi Kääriäinen <akaariai@gmail.com>2013-01-08 19:17:13 +0200
commit23ca3a01940c63942885df4709712cebf4df79ec (patch)
tree43e39d56aa39ceedbf371ed60a40de21e395c70d /docs
parentbb7f34d619bfe6b4e067af967ab30635c772def9 (diff)
Fixed #16759 -- Remove use of __deepcopy__ in qs.clone()
The original problem was that queryset cloning was really expensive when filtering with F() clauses. The __deepcopy__ went too deep copying _meta attributes of the models used. To fix this the use of __deepcopy__ in qs cloning was removed. This commit results in some speed improvements across the djangobench benchmark suite. Most query_* tests are 20-30% faster, save() is 50% faster and finally complex filtering situations can see 2x to order of magnitude improvments. Thanks to Suor, Alex and lrekucki for valuable feedback.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions