#24366: Improve migration dependency graph speed
--------------------------------------+------------------------------------
Reporter: MarkusH | Owner: knbk
Type: Cleanup/optimization | Status: assigned
Component: Migrations | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by knbk):
* owner: nobody => knbk
* status: new => assigned
Comment:
Preliminary results: from 25 minutes to 2 seconds with an implementation
based on a `Node` class and a recursive, cached `get_ancestors()` method.
The order isn't the exact same, but the following holds true:
{{{
for i, node in enumerate(ancestors):
assert all(ancestors.index(p) < i for p in node.parents)
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24366#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/065.63cc9c06040b38071b13719496d6f3a9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.