Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

460
Vistas
How to track the time Django takes to run migrations?

I have multiple Django apps with loads of migrations, and they can take a long time to run when building on a VM. For logistic reasons, and to identify areas where we can increase speed I'd like to be able to view the time it took for all migrations to run.

What would be the preferred way of doing so? Maybe a management command that kicks off when you run migrate? Can't seem to find much on the topic.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

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.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda