Skyline

MySQL under a Laravel app

2 posts · Updated · Boring Observability

Eloquent writes the SQL, and most days that is a good trade. These posts cover the places where the query it sends and the query you meant differ in a way MySQL cares about, such as a whereDate() that makes it read every row in the table, and what MySQL itself records about each table and index while the app runs.

To see which of those records your server keeps, the performance_schema checker takes the output of one read-only query and lists the consumers and instruments that are off.