Changes between Initial Version and Version 1 of Ticket #29081
- Timestamp:
- Jan 29, 2018, 7:16:16 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29081 – Description
initial v1 16 16 I propose: 17 17 * 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.}}}