Dear Mr.

This is not something I would suggest,
but I think you'd better investigate the root cause of the deadlock and take measures.
As long as we are accessing the database via multiple threads,
it may be difficult...