quarkus-mybatis icon indicating copy to clipboard operation
quarkus-mybatis copied to clipboard

add configuration of the maximum sql execution time

Open zuochangqin opened this issue 2 years ago • 1 comments

Since this extension does not support reaction, I can only use multiple threads to operate the data. However, in the process of use, sometimes due to database problems, the operation is stuck and will not return for a long time, which will cause the thread execution time to exceed the maximum allowed time of quarkus thread, resulting in some unexpected errors. May I ask if there is any configuration that can control this sql execution return time? For example, after a certain period of time, directly throw an exception, you can know that there is a problem with the execution, so that you can retry.

zuochangqin avatar Sep 13 '23 09:09 zuochangqin

Well, I think it could take some configurations on the jdbc level, such as a timeout?

zhfeng avatar Sep 19 '23 07:09 zhfeng