#23745: Migrations migrate is slow --------------------------------------+------------------------------------ Reporter: claudep | Owner: nobody Type: Cleanup/optimization | Status: new Component: Migrations | Version: master Severity: Release blocker | Resolution: Keywords: | Triage Stage: Accepted Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 1 Easy pickings: 0 | UI/UX: 0 --------------------------------------+------------------------------------
Comment (by timgraham): I did some research, and I can hit the logic in question: {{{ if app_label == settings.AUTH_USER_MODEL and ignore_swappable: continue }}} on both master and with Claude's patch if I follow the steps in this comment: https://code.djangoproject.com/ticket/22563#comment:8 Andrew first added an error message saying that changing `AUTH_USER_MODEL` after creating an initial migration was invalid: https://github.com/django/django/commit/fc974313b85da932a70f1f993b33207d78d31831 and then someone reporting hitting that error with a false positive and he changed it to the current version: https://github.com/django/django/commit/5182efce8d73ec552a1d7f3e86a24369bb261044 His comment was "I've committed a patch that suppresses the error in that one case (where we know it's safe to do so), and I can now switch `AUTH_USER_MODEL` even midway through a migration set without errors." -- Ticket URL: <https://code.djangoproject.com/ticket/23745#comment:7> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.2a6c72e1c29dfdb278173171a544199d%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.