Skip to content

Option to force ALGORITHM=INSTANT during ALTER migrations #1047

Open
@strokirk

Description

@strokirk

Description

With many MySQL ALTER statements now supporting Online DDL, it would be a great feature to be able to force Django to always add ALGORITHM=INSTANT where possible.

While MySQL mostly uses the "best algorithm it can", this is mostly to safeguard against MySQL silently downgrading to another algorithm, which can easily cause site-wide downtime. Better a failed migration than a locked database.

Would this be a reasonable feature to add? I'd be happy to try to make a PR if so, assuming I can understand where to make it.

(Essentially the same feature request as in: https://code.djangoproject.com/ticket/30773)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions