django-health-check
django-health-check copied to clipboard
Only close DB connections when using threading
Previously, connections would be closed when threading was disabled. If opening a connection isn't a cheap operation, this adds latency to both the healthcheck request and future requests processed by the worker.
Talking with Frank about this, will circle back.
Support for this was just merged into master.
@seanpar203 I'm not sure that's true - looking at the code in master it still tries to close connections even when unthreaded?
@RealOrangeOne Sorry, I meant to put that in your other ticket about multiple DB support.