#24397: Speed up model rendering with apps.ready = False
--------------------------------------+------------------------------------
Reporter: knbk | Owner: knbk
Type: Cleanup/optimization | Status: closed
Component: Migrations | Version: master
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
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: new => closed
* resolution: => fixed
Comment:
In [changeset:"888c9b6429a44824078a49fb1ebacf2e950cd887"]:
{{{
#!CommitTicketReference repository=""
revision="888c9b6429a44824078a49fb1ebacf2e950cd887"
Fixed #24397 -- Sped up rendering multiple model states.
Set apps.ready to False when rendering multiple models. This prevents
that the cache on Model._meta is expired on all models after each time a
single model is rendered. Prevented that Apps.clear_cache() refills the
cache on Apps.get_models(), so that the wrong value cannot be cached
when cloning a StateApps.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24397#comment:3>
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.f8ee302179462c67c4fc600ce87fb2fb%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.