Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

461
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda