Opened 8 years ago
Last modified 8 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 )
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 , 8 years ago
| Owner: | changed from to | 
|---|---|
| Status: | new → assigned | 
comment:3 by , 8 years ago
| Description: | modified (diff) | 
|---|---|
| Summary: | Use server side cursors for values and values_list → Use server-side cursors for QuerySet.values() and values_list() | 
| Triage Stage: | Unreviewed → Accepted | 
| Version: | master → 1.11 | 
  Note:
 See   TracTickets
 for help on using tickets.
    
PR