2 ms·
> innodb global lock architecture has improved greatly since 5.1. ancient bug report from harrison is not indicative of problem here. No, this performance clif
by throwdbaaway 5y ago
> innodb global lock architecture has improved greatly since 5.1. ancient bug report from harrison is not indicative of problem here.
No, this performance cliff does still exist in the current mysql 8.0 branch. The Contention-Aware Transaction Scheduling added to 8.0 doesn't help the queuing problem with hot row at all. So facebook either doesn't suffer from the problem, e.g. all their writes are append-only so there is no hot row, or prevents the problem from happening, e.g. with API rate limiting built on top of something like memcached.
The improvement in innodb lock architecture mostly comes from splitting the locks into more granular levels. However, updates to the same hot row would require the same lock at the page-level. It is already as granular as it can be. So the tag of the bug report is correct, this is a problem of "lock queuing".