Re: How to fix deadlocks with tests?

2023-10-27 Thread Chetan Ganji
Hey, This problem seems to be unique. There might not be a standard solution. https://github.com/jazzband/django-silk You can replicate the prod environment to local and profile it using django silk. If you can somehow manage to reproduce the bug and find the timestamp when it happened; you can f

How to fix deadlocks with tests?

2023-10-27 Thread Joshua Gardner
I'm experiencing deadlocks in my production application occasionally. I'm using MySQL. Some of these deadlocks are due to insufficient indexing, and I'd like to fix this with some test-driven development. How can I write tests that exercise the application concurrently, and could be used to replic