Changes between Initial Version and Version 1 of Ticket #29081


Ignore:
Timestamp:
Jan 29, 2018, 7:16:16 AM (6 years ago)
Author:
Дилян Палаузов
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29081 – Description

    initial v1  
    1616I propose:
    1717* wring after {{{b = Book.objects.select_related('author_ _hometown').get(id=4)}}} the comment # Hits the database with INNER JOIN.
    18 * changing {{{b = Book.objects.get(id=4) # No select_related() in this example.}}} to {{{b = Book.objects.get(id=4) # No select_related() in this example, hits the database.}}}, and
    19 * changing {{{p = b.author         # Hits the database.}}} to {{{p = b.author         # Doesn't hit the database.}}}
     18* changing {{{b = Book.objects.get(id=4) # No select_related() in this example.}}} to {{{b = Book.objects.get(id=4) # No select_related() in this example, hits the database.}}}
Back to Top