Opened 7 years ago
Last modified 7 years ago
#28817 closed Bug
Use server side cursors for values and values_list — at Initial Version
Reported by: | Dražen Odobašić | Owned by: | nobody |
---|---|---|---|
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
Server side cursors are only initialized for ModelIterable
class. We should do the same for other BaseIterable
classes (ValuesIterable
, ValuesListIterable
and FlatValuesListIterable
).
The idea is that you could then use QuerySet.values_list('id').iterator()
and actually utilize server side cursors.
Note:
See TracTickets
for help on using tickets.