Using MariaDB instead of MySQL adds 2 seconds for each request
When setting up a fresh new site, when choosing MariaDB for the DB, instead of MySQL, every request immediately is delayed by 2 seconds. I used the Laps plugin to pinpoint the delay to the “Core & MU Plugin load” Phase. With MySQL this phase typically is 10 or 20 ms, with MariaDB it becomes 2025 ms or thereabouts. Can it be this loading phase is hitting some timeout (of 2 sec) and then decides to move on?
Thanks in advance,
Ruud
- Does this happen for all sites in Local, or just one in particular?
All sites
- Are you able to create a new, plain WordPress site in Local and access it in a Browser?
Yes
Replication
- Using windows 11, install Local 6.7.0 and add a fresh install.
- Select MariaDB for the DB
- Install the Laps plugin (https://github.com/Rarst/laps)
Compare this to an identical fresh install with MySQL
System Details
- Which version of Local is being used?
6.7.0
- What Operating System (OS) and OS version is being used?
Windows 11 Pro
- WordPress version
WordPress 6.2
- Attach the Local Log. See this Help Doc for instructions on how to do so:
I checked the error-log, but did not have anything in regards to this new fresh install I just made.
It works, but is just 2 seconds slower.
I noticed this slowdown effect before on other projects and switched to using MySQL instead, which actually requires to remake a new project so quite bothersome.
I found references to MariaDB in the router log, so will add that file
local-lightning.log (17.5 KB)