Use READ COMMITTED for all MySQL transactions on busy sites

Created on 26 January 2023, about 2 years ago
Updated 26 April 2023, almost 2 years ago

Problem/Motivation

By default, Drupal uses the "REPEATABLE READ" transaction isolation level - this results in lots of deadlock errors.

Serialization failure: 1213 Deadlock found when trying to get lock

The issue Use READ COMMITTED by default for MySQL transactions πŸ› Use READ COMMITTED by default for MySQL transactions Fixed sets the isolation level only if it is explicitly configured in settings.php.

All high-traffic sites need to use the "READ COMMITTED" transaction isolation level without any requirements in settings.php.

πŸ› Bug report
Status

Closed: won't fix

Version

9.5

Component
MySQL driverΒ  β†’

Last updated about 1 month ago

Created by

πŸ‡¨πŸ‡ΏCzech Republic martin_klima

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024