Indexing an expression is not possible directly, so a query filtering on YEAR(placed_at) or on a JSON path scans the table regardless of what indexes exist. The optimiser…
3.6 added lookup tables, which is WooCommerce admitting postmeta does not scale. What they contain, what they do not, and the regeneration nobody schedules.
Earlier versions parsed DESC in an index definition and ignored it, which is worse than rejecting it — the index looked right and the query did a filesort.…
An index on (a) is redundant when an index on (a, b) exists, because the composite serves every query the single-column one could — and both are being…