I made a patch for Django to add QuerySet.fields(*fields,
**related_fields) and make possible to load only some from master and
related models fields. It allows to tune various object list queries
when we need only limited subset of all fields, improve general
performance and decrease database load. As side effect of this patch
support of selecting fields from related models in QuerySet.values()
is implemented too. It was changed signature of this method from
values(*fields) to values(*fields, **related_fields) but the change is
backward compatible.

See more details at:
http://www.mysoftparade.com/blog/django_orm_performance_patch/

Affected tickets:
http://code.djangoproject.com/ticket/5420#comment:10
http://code.djangoproject.com/ticket/5768#comment:7

The patch itself:
http://code.djangoproject.com/attachment/ticket/5420/queryset_fields_trunk.diff

Can someone from Django developers review this patch.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to