Handling Timeouts inside stored procedures

后端 未结 4 1804
忘掉有多难
忘掉有多难 2020-12-18 16:43

I have a stored procedure that executes a couple of queries. Each query might fail because of a timeout.

I still want to continue to execute the other queries. Is th

4条回答
  •  悲哀的现实
    2020-12-18 17:48

    If you are frequently getting timeouts, the fix is to performance tune the queries not to try to skip the timeouts and move onto the next query.

    Timeouts are usually a sign of bad query design (Number 1 cause), bad database design (number 2 cause) or inadequate equipment. All three are fixable. So fix them.

提交回复
热议问题