Changes between Version 1 and Version 2 of Ticket #29081


Ignore:
Timestamp:
Jan 29, 2018, 9:19:31 AM (7 years ago)
Author:
Tim Graham
Comment:

PR

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29081

    • Property Has patch set
    • Property Triage Stage UnreviewedAccepted
    • Property Summary select_related and hitting the databaseClarify QuerySet.select_related() example regarding "hitting the database"
  • Ticket #29081 – Description

    v1 v2  
    1 https://docs.djangoproject.com/en/2.0/ref/models/querysets/#select-related says:
     1[[Image()]]https://docs.djangoproject.com/en/2.0/ref/models/querysets/#select-related says:
    22
    33> … then a call to Book.objects.select_related('author_ _hometown').get(id=4) will cache the related Person and the related City:
Back to Top