Tag: mysql
All the articles with the tag "mysql".
-
One mutex for every row: mysqlnd statistics in thread-based PHP
In thread-safe PHP builds, mysqlnd locks a process-wide mutex on every statistics update. How it showed up, what it costs FrankenPHP with MySQL depending on the load and on where the threads run, and a patch with relaxed atomics that keeps the statistics and brings their cost down from 7–91% to 1–3%.