Optimising MySQL Query
Sraban Pahadasingh April 14, 2020 05:50 PMSteps
- Expain in select query will produce the number of comparison done, look at the column to assign indexing to column
- Remove generalised statements, instead specifiy the required columns
- Remove in() and not In() from where clause rather use =. !=
- Never use subquery if possible, rather to use join
- De-normalize when not necessary to devide tables futher on basis of normalisation.