#28830: Add a function to convert a list to a Queryset
-------------------------------------+-------------------------------------
Reporter: 0r1gamic | Owner: nobody
Type: New feature | Status: closed
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution: wontfix
Keywords: queryset, list | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):
* status: new => closed
* type: Uncategorized => New feature
* component: Core (Other) => Database layer (models, ORM)
* resolution: => wontfix
Comment:
I don't think this merits inclusion in Django. The code is simple enough
that it doesn't add much boilerplate for projects that want the behavior.
There are also several problems with the implementation that might be
footguns:
1) Ordering isn't preserved.
2) For large lists, the performance of
`model.objects.filter(pk__in=pk_list)` is usually poor.
--
Ticket URL: <https://code.djangoproject.com/ticket/28830#comment:1>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/068.778adac1fccf31db2e5767a3106f745b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.