[Answered ]-How to track the time Django takes to run migrations?

2👍

This seems to be a job for cProfile.

You can write a tiny script that runs the migration while wrapping the call in cProfile.run()

You should also check out SnakeViz. This tool helps a lot for profiling your program.

Leave a comment