No NOWAIT Option in MySQL SELECT FOR UPDATE

来源:互联网 发布:在哪里注册淘宝小号 编辑:程序博客网 时间:2024/06/07 08:46

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.

0 0
原创粉丝点击