Go to the first, previous, next, last section, table of contents.


What kind of optimisation is done on the WHERE clause?

(Incomplete, MySQL does a lot of optimisations.)

The first issue about making a slow SELECT ... WHERE faster is to check if one could add an index. All references between different tables should usually be done with indexes. One can use the EXPLAIN command to check which indexes are used in a select. See section EXPLAIN syntax. Get information about a SELECT.. See section How does MySQL use indexes?


Go to the first, previous, next, last section, table of contents.