[Django] #20845: prefetch_related() could be explained better

5 views
Skip to first unread message

Django

unread,
Aug 1, 2013, 12:18:17 PM8/1/13
to django-...@googlegroups.com
#20845: prefetch_related() could be explained better
-------------------------------+--------------------
Reporter: EvilDMP | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: 1.5
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
https://docs.djangoproject.com/en/dev/ref/models/querysets/#prefetch-
related

I ''think'' I understand what it does now, but it took a lot of work. It's
confusing that the most prominent example offered is of something you
shouldn't do.

--
Ticket URL: <https://code.djangoproject.com/ticket/20845>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Aug 1, 2013, 12:18:28 PM8/1/13
to django-...@googlegroups.com
#20845: prefetch_related() could be explained better
-------------------------------+--------------------------------------
Reporter: EvilDMP | Owner: EvilDMP
Type: Uncategorized | Status: assigned
Component: Documentation | Version: 1.5
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
-------------------------------+--------------------------------------
Changes (by EvilDMP):

* owner: nobody => EvilDMP
* needs_better_patch: => 0
* status: new => assigned
* needs_tests: => 0
* needs_docs: => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/20845#comment:1>

Django

unread,
Aug 2, 2013, 3:11:46 PM8/2/13
to django-...@googlegroups.com
#20845: prefetch_related() could be explained better
--------------------------------------+------------------------------------
Reporter: EvilDMP | Owner: EvilDMP
Type: Cleanup/optimization | Status: assigned
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by timo):

* has_patch: 0 => 1
* version: 1.5 => master
* type: Uncategorized => Cleanup/optimization
* stage: Unreviewed => Accepted


Comment:

This is addressed in the patch for #20842.

--
Ticket URL: <https://code.djangoproject.com/ticket/20845#comment:2>

Django

unread,
Aug 4, 2013, 12:34:50 PM8/4/13
to django-...@googlegroups.com
#20845: prefetch_related() could be explained better
--------------------------------------+------------------------------------
Reporter: EvilDMP | Owner: EvilDMP
Type: Cleanup/optimization | Status: closed
Component: Documentation | Version: master
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"e8183a8193ebc80fdc6fef789813c2c0c3615e5c"]:
{{{
#!CommitTicketReference repository=""
revision="e8183a8193ebc80fdc6fef789813c2c0c3615e5c"
Fixed #20842 and #20845 - Added a note on order_by() and improved
prefetch_related() docs.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/20845#comment:3>

Django

unread,
Aug 4, 2013, 12:36:15 PM8/4/13
to django-...@googlegroups.com
#20845: prefetch_related() could be explained better
--------------------------------------+------------------------------------
Reporter: EvilDMP | Owner: EvilDMP
Type: Cleanup/optimization | Status: closed
Component: Documentation | Version: master
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"74205c4a3c587a9eedceef1b98cd4b0d529a7510"]:
{{{
#!CommitTicketReference repository=""
revision="74205c4a3c587a9eedceef1b98cd4b0d529a7510"
[1.6.x] Fixed #20842 and #20845 - Added a note on order_by() and improved
prefetch_related() docs.

Backport of e8183a8193 from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/20845#comment:4>

Django

unread,
Aug 4, 2013, 12:36:51 PM8/4/13
to django-...@googlegroups.com
#20845: prefetch_related() could be explained better
--------------------------------------+------------------------------------
Reporter: EvilDMP | Owner: EvilDMP
Type: Cleanup/optimization | Status: closed
Component: Documentation | Version: master
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"bc33fef90a851da91758fa6c1126456e61aadf35"]:
{{{
#!CommitTicketReference repository=""
revision="bc33fef90a851da91758fa6c1126456e61aadf35"
[1.5.x] Fixed #20842 and #20845 - Added a note on order_by() and improved
prefetch_related() docs.

Backport of e8183a8193 from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/20845#comment:5>

Reply all
Reply to author
Forward
0 new messages