MySQL Query Optimiser Hints: INDEX_MERGE, NO_RANGE_OPTIMIZATION, and SET ...
MySQL optimizer hints: steer a single WordPress query without changing the server Sometimes the MySQL optimizer picks a bad plan for one query: it uses an index merge that reads far more rows than needed, chooses the wrong index for a meta query, or joins tables in an order that explodes the intermediate result. Changing…