1 | | I profiled the `executor.migrate()` call: https://dpaste.de/5hQH |
| 1 | I profiled the `executor.migrate()` call based on |
| 2 | * https://github.com/MarkusH/django-migrations-benchmark/tree/e2bd24755389668b34b87d254ec8ac63725dc56e |
| 3 | * https://github.com/django/django/tree/81f76517288eb386304f9cae23873b865945bc82 with this change: |
| 4 | {{{#!diff |
| 5 | diff --git a/django/db/migrations/executor.py b/django/db/migrations/executor.py |
| 6 | index 7dc0350..bf5dd15 100644 |
| 7 | --- a/django/db/migrations/executor.py |
| 8 | +++ b/django/db/migrations/executor.py |
| 9 | @@ -104,6 +104,7 @@ class MigrationExecutor(object): |
| 10 | state = migration.mutate_state(state, preserve=do_run) |
| 11 | if self.progress_callback: |
| 12 | self.progress_callback("render_success") |
| 13 | + return |
| 14 | # Phase 2 -- Run the migrations |
| 15 | for migration, backwards in plan: |
| 16 | if not backwards: |
| 17 | }}} |