#32632: Query resolution can be at least 3x slower in 3.2
-------------------------------------+-------------------------------------
     Reporter:  Phillip Cutter       |                    Owner:  Simon
                                     |  Charette
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  3.2
  (models, ORM)                      |
     Severity:  Release blocker      |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

 In [changeset:"d5add5d3a26f98e961dfbcad67bb04d936f2f332" d5add5d3]:
 {{{
 #!CommitTicketReference repository=""
 revision="d5add5d3a26f98e961dfbcad67bb04d936f2f332"
 [3.2.x] Fixed #32632, Fixed #32657 -- Removed flawed support for Subquery
 deconstruction.

 Subquery deconstruction support required implementing complex and
 expensive equality rules for sql.Query objects for little benefit as
 the latter cannot themselves be made deconstructible to their reference
 to model classes.

 Making Expression @deconstructible and not BaseExpression allows
 interested parties to conform to the "expression" API even if they are
 not deconstructible as it's only a requirement for expressions allowed
 in Model fields and meta options (e.g. constraints, indexes).

 Thanks Phillip Cutter for the report.

 This also fixes a performance regression in
 bbf141bcdc31f1324048af9233583a523ac54c94.

 Backport of c8b659430556dca0b2fe27cf2ea0f8290dbafecd from main
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32632#comment:10>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.2c06ebe791e8961ff8596c986a56dec9%40djangoproject.com.

Reply via email to