1
0
mirror of https://github.com/django/django.git synced 2025-01-12 19:37:06 +00:00
django/tests/regressiontests/queries
Anssi Kääriäinen 23ca3a0194 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.
2013-01-08 19:17:13 +02:00
..
__init__.py
models.py Fixed #18854 -- Join promotion in disjunction cases 2012-12-20 21:45:15 +02:00
tests.py Fixed #16759 -- Remove use of __deepcopy__ in qs.clone() 2013-01-08 19:17:13 +02:00