#24590: Cache return value of `swappable_setting`
-------------------------------------+-------------------------------------
     Reporter:  knbk                 |                    Owner:  MarkusH
         Type:                       |                   Status:  closed
  Cleanup/optimization               |
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               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
-------------------------------------+-------------------------------------
Changes (by Markus Holtermann <info@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"e1427cc609fa6ab247501b101cfb3c0092aba55b" e1427cc6]:
 {{{
 #!CommitTicketReference repository=""
 revision="e1427cc609fa6ab247501b101cfb3c0092aba55b"
 Fixed #24590 -- Cached calls to swappable_setting.

 Moved the lookup in Field.swappable_setting to Apps, and added
 an lru_cache to cache the results.

 Refs #24743

 Thanks Marten Kenbeek for the initial work on the patch. Thanks Aymeric
 Augustin and Tim Graham for the review.
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24590#comment:8>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/062.983172a280eb4e84d1bb0d5efe7118bb%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to