#15648: [Feature request] NamedTupleQuerySet
-------------------------------------+-------------------------------------
     Reporter:  pbagwl               |                    Owner:  paulmillr
         Type:  New feature          |                   Status:  assigned
    Component:  Database layer       |                  Version:  SVN
  (models, ORM)                      |               Resolution:
     Severity:  Normal               |             Triage Stage:  Accepted
     Keywords:  namedtuple, tuple,   |      Needs documentation:  1
  queryset                           |  Patch needs improvement:  1
    Has patch:  1                    |                    UI/UX:  0
  Needs tests:  0                    |
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by akaariai):

 Why the namedtuples API? Is there some reason values_list should not
 return namedtuples directly? It should be backwards compatible, as index
 based fetching still work. I believe there will not be any serious
 performance impact.

 If the performance is acceptable, then raw cursors should return named
 tuples, too. That would be a really nice addition for raw SQL users. But
 of course, this is another ticket's problem.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/15648#comment:15>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to