It sucks!
Beware of this when you want to use SELECT FOR UPDATE for pessimistic lock. without NOWAIT options, threads might be blocked due to locks.
Workaround: add timeout control in application level.
本文讨论了在使用 SELECT FOR UPDATE 进行悲观锁定时遇到的问题,即线程可能因锁定而被阻塞。提供了一个在应用层面添加超时控制的工作绕过方案。
It sucks!
Beware of this when you want to use SELECT FOR UPDATE for pessimistic lock. without NOWAIT options, threads might be blocked due to locks.
Workaround: add timeout control in application level.
1603

被折叠的 条评论
为什么被折叠?
