We make PagibleAI CMS - a hybrid content management system used for headless or template-based setups built as Laravel package, designed to be fastest. It runs on five databases: MariaDB, MySQL, PostgreSQL, SQLite, and SQL Server - and we tune our queries and indexes for all five, not just one.
To keep ourselves honest, we run a benchmark suite that uses 10,000 pages nested three levels deep, with shared content blocks and files; runs every operation the CMS actually performs; and sends the exact same commands to every database. So when one database is slower, it is the database - not different code.
One detail matters. Our page tree is stored as a nested set: the whole tree is kept as numbered ranges, which makes reading a branch lightning-fast but makes moving or inserting a page shuffle the numbers on thousands of rows. Reads are cheap; some writes are expensive by design. And a CMS spends most of its time reading.