Community journal

The latest from the MySQL community

Ideas, releases, practical guides, and perspectives from the people building with MySQL.

Follow the feed
Showing entries 1 to 1 of 1 « Previous | Next »
Displaying posts with tag: SKIP LOCKED (reset)
MySQL8.0におけるSKIP LOCKED

前回のブログで、MySQLとPostgreSQLの基本的なロックに関してはまとめたので、ここでは、MySQL8.0から加わっている。SKIP LOCKEDとNOWAITオプションについて追記します。

RDBMSにおけるLockの挙動

MySQL8.0 (NOWAIT and SKIP LOCKED)

WL#3597: Implement NOWAIT and SKIP LOCKED
WL#8919: InnoDB: Implement NOWAIT and SKIP LOCKED

これまでの挙動としては、LOCK TIMEOUT待ちが主なレスポンスでした。

LOCK Wait and TimeoutMySQL8.0では、以下オプションが利用可能です。

  • for update of <table名> SKIP LOCKED; /*** …
[さらに読む]