mirror of
https://github.com/django/django.git
synced 2024-12-24 10:05:46 +00:00
f51c1f5900
This patch introduces the Prefetch object which allows customizing prefetch operations. This enables things like filtering prefetched relations, calling select_related from a prefetched relation, or prefetching the same relation multiple times with different querysets. When a Prefetch instance specifies a to_attr argument, the result is stored in a list rather than a QuerySet. This has the fortunate consequence of being significantly faster. The preformance improvement is due to the fact that we save the costly creation of a QuerySet instance. Thanks @akaariai for the original patch and @bmispelon and @timgraham for the reviews. |
||
---|---|---|
.. | ||
0.95.txt | ||
0.96.txt | ||
1.0-alpha-1.txt | ||
1.0-alpha-2.txt | ||
1.0-beta-2.txt | ||
1.0-beta.txt | ||
1.0-porting-guide.txt | ||
1.0.1.txt | ||
1.0.2.txt | ||
1.0.txt | ||
1.1-alpha-1.txt | ||
1.1-beta-1.txt | ||
1.1-rc-1.txt | ||
1.1.2.txt | ||
1.1.3.txt | ||
1.1.4.txt | ||
1.1.txt | ||
1.2-alpha-1.txt | ||
1.2-beta-1.txt | ||
1.2-rc-1.txt | ||
1.2.1.txt | ||
1.2.2.txt | ||
1.2.3.txt | ||
1.2.4.txt | ||
1.2.5.txt | ||
1.2.6.txt | ||
1.2.7.txt | ||
1.2.txt | ||
1.3-alpha-1.txt | ||
1.3-beta-1.txt | ||
1.3.1.txt | ||
1.3.2.txt | ||
1.3.3.txt | ||
1.3.4.txt | ||
1.3.5.txt | ||
1.3.6.txt | ||
1.3.7.txt | ||
1.3.txt | ||
1.4-alpha-1.txt | ||
1.4-beta-1.txt | ||
1.4.1.txt | ||
1.4.2.txt | ||
1.4.3.txt | ||
1.4.4.txt | ||
1.4.5.txt | ||
1.4.6.txt | ||
1.4.7.txt | ||
1.4.8.txt | ||
1.4.9.txt | ||
1.4.txt | ||
1.5-alpha-1.txt | ||
1.5-beta-1.txt | ||
1.5.1.txt | ||
1.5.2.txt | ||
1.5.3.txt | ||
1.5.4.txt | ||
1.5.5.txt | ||
1.5.txt | ||
1.6.txt | ||
1.7.txt | ||
index.txt | ||
security.txt |