A slow query log at the usual one-second threshold shows the report that takes four seconds and hides the nine hundred queries of eight milliseconds that the product…
A daily report scanning 1.2 million rows to return two hundred. Why neither obvious index helped, what the composite one costs, and the two answers I turned down.
Every request WordPress serves opens with one query that reads every option flagged autoload = yes and unserialises the lot into memory. That is a reasonable design for…
Asking for every post is one argument away, which is why it survives review: it works on the development database, and the development database has forty products in…