Changes between Initial Version and Version 1 of Ticket #24743, comment 3


Ignore:
Timestamp:
May 4, 2015, 3:29:15 PM (10 years ago)
Author:
Markus Holtermann

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24743, comment 3

    initial v1  
    1 I profiled the `executor.migrate()` call: https://dpaste.de/5hQH
     1I 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
     5diff --git a/django/db/migrations/executor.py b/django/db/migrations/executor.py
     6index 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}}}
Back to Top