Changes between Initial Version and Version 1 of Ticket #30191, comment 12
- Timestamp:
- Feb 19, 2019, 12:54:52 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30191, comment 12
initial v1 3 3 So, 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). 4 4 5 Now, you are completely right that only referenced fields have to field fetched in the queries and my curiosity got the best of meand it looks like the optimization can be implemented without too much work.5 Now, 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. 6 6 7 7 https://github.com/django/django/compare/master...charettes:ticket-30191