#36606: Optimize QuerySet.values_list(flat=True) with no fields
-------------------------------------+-------------------------------------
Reporter: Adam Johnson | Owner: Adam
Type: | Johnson
Cleanup/optimization | Status: assigned
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Simon Charette):
I wonder if we should take the opportunity to deprecate
`values_list(flat=True)` instead by changing the check to be `len(fields)
!= 1` as it seems like an omission in the API and should be a rare
occurrence in code bases so I'm not convinced it's worth supporting it.
--
Ticket URL: <https://code.djangoproject.com/ticket/36606#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/01070199394141b8-9424bf37-ec0b-4fca-a844-d146cacd2c2e-000000%40eu-central-1.amazonses.com.