#29898: Adapt schema editors to operate from model states instead of fake
rendered
models
--------------------------------------+------------------------------------
Reporter: Simon Charette | Owner: (none)
Type: Cleanup/optimization | Status: new
Component: Migrations | Version: dev
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
--------------------------------------+------------------------------------
Description changed by Suzannah Cooper:
Old description:
> Rendering models meant to be passed to the schema editor during the
> migrate phase is the main source of slowdown during the migrate phase of
> a project.
>
> Adapting schema editors to be able to perform the same operations with
> model states would be way more efficient as model rendering could always
> be delayed until it's a necessity such during the application of
> `RunPython` operations.
>
> Ref #22608.
>
> Initial work by Markus Holtermann here
> https://github.com/django/django/compare/master...MarkusH:schemaeditor-
> modelstate
New description:
Rendering models meant to be passed to the schema editor during the
migrate phase is the main source of slowdown during the migrate phase of a
project.
Adapting schema editors to be able to perform the same operations with
model states would be way more efficient as model rendering could always
be delayed until it's a necessity such during the application of
`RunPython` operations.
Ref #22608.
Initial work by Markus Holtermann here
https://github.com/django/django/compare/main...MarkusH:schemaeditor-
modelstate
--
--
Ticket URL: <https://code.djangoproject.com/ticket/29898#comment:14>
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 view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019d1e06bb94-5f6cb586-5605-4de1-bbf7-c4b5df0f1c0d-000000%40eu-central-1.amazonses.com.