Changes between Initial Version and Version 1 of Ticket #30191, comment 12


Ignore:
Timestamp:
Feb 19, 2019, 12:54:52 AM (6 years ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30191, comment 12

    initial v1  
    33So, the reason why the `SELECT` happens even if no signals are registered is that the deletion collector builds the deletion graph from the origin by using simple `SELECT` to abort the process when no objects are returned instead of building optimistic `DELETE` queries with complex predicates (e.g. JOINS or subqueries).
    44
    5 Now, you are completely right that only referenced fields have to field fetched in the queries and my curiosity got the best of me and it looks like the optimization can be implemented without too much work.
     5Now, you are completely right that only referenced fields have to be fetched in the `SELECT` queries and it looks like the optimization can be implemented without too much work.
    66
    77https://github.com/django/django/compare/master...charettes:ticket-30191
Back to Top