Closed Bug 1157969 Opened 9 years ago Closed 8 years ago

Use prefetch from Django 1.7

Categories

(Marketplace Graveyard :: Code Quality, enhancement, P3)

Avenir
enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: robhudson, Unassigned)

References

Details

(Whiteboard: [ktlo])

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.
Blocks: 1157970
Priority: -- → P3
Severity: normal → enhancement
Whiteboard: [ktlo]
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.