Improve MySQL Query Performance Tips
I am sharing some of my understanding on how to improve any MySQL Query performance, as per me below points makes the queries faster. May these points helpful for someone.
Tips
- Make index of columns used in where clause but not many columns, only higher priority columns.
- Always make joins on int columns.
- Use subquery or IN statement in place of joins.
- Don't select * from [table], always provide specific select columns in a query.
- Use Group By in place of DISTINCT.
- Use UTF-8 general collation for tables and columns.
- Some INNODB Engine tables configurations are helpful at server level. Below link can be helpful: