Opened 7 years ago

Last modified 7 years ago

#28817 closed Bug

Use server-side cursors for QuerySet.values() and values_list() — at Version 3

Reported by: Dražen Odobašić Owned by: Dražen Odobašić
Component: Database layer (models, ORM) Version: 1.11
Severity: Normal Keywords:
Cc: François Freitag Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Tim Graham)

Server side cursors are only initialized for ModelIterable class. We should do the same for other BaseIterable classes (ValuesIterable, ValuesListIterable and FlatValuesListIterable). (django-developers discussion

The idea is that you could then use QuerySet.values_list('id').iterator() and actually utilize server side cursors.

Change History (3)

comment:1 by Dražen Odobašić, 7 years ago

Owner: changed from nobody to Dražen Odobašić
Status: newassigned

comment:2 by Dražen Odobašić, 7 years ago

Has patch: set
Last edited 7 years ago by Tim Graham (previous) (diff)

comment:3 by Tim Graham, 7 years ago

Description: modified (diff)
Summary: Use server side cursors for values and values_listUse server-side cursors for QuerySet.values() and values_list()
Triage Stage: UnreviewedAccepted
Version: master1.11
Note: See TracTickets for help on using tickets.
Back to Top