Use prefetch from Django 1.7

RESOLVED WONTFIX

Status

P3
enhancement
RESOLVED WONTFIX
4 years ago
3 years ago

People

(Reporter: robhudson, Unassigned)

Tracking

Avenir
Points:
---

Details

(Whiteboard: [ktlo])

(Reporter)

Description

4 years ago
We've upgrade to Django 1.7, now we can take advantage of the updated prefetch stuff...

The new Prefetch object allows customizing prefetch operations.

You can specify the QuerySet used to traverse a given relation or customize the storage location of prefetch results.

This enables things like filtering prefetched relations, calling select_related() from a prefetched relation, or prefetching the same relation multiple times with different querysets. See prefetch_related() for more details.


This bug is to investigate and find the places we can use this to help our SQL queries be more optimal.
(Reporter)

Updated

4 years ago
Blocks: 1157970
Priority: -- → P3
Severity: normal → enhancement
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.