Changes between Initial Version and Version 1 of Ticket #26338, comment 3


Ignore:
Timestamp:
Mar 9, 2016, 8:08:37 AM (9 years ago)
Author:
Tim Graham

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #26338, comment 3

    initial v1  
    1 I believe `all_objects[index1]` and `all_objects[index2]` are running two separate queries. When you first cast to a list, you only have one query. Please verify by checking [https://docs.djangoproject.com/en/stable/faq/models/#how-can-i-see-the-raw-sql-queries-django-is-running connections.queries].
     1I believe `all_objects[index1]` and `all_objects[index2]` are running two separate queries. When you first cast to a list, you only have one query. Please verify by checking [https://docs.djangoproject.com/en/stable/faq/models/#how-can-i-see-the-raw-sql-queries-django-is-running connection.queries].
Back to Top