Checklist
Checklist
2. Check if multiple tables in Use same charset for Verify if all the tables
the query have different all the tables within the database have
charset as indexing will fail same charset
in this case
Query Optimisation
Points to be Noted :
1. Queries that are retrieving distinct columns cannot have indexes created so it's bound to
perform slow
2. For columns with json data type index will be hash index ( not usually allowed)
3. key_len indicates number of bytes consumed by the index, try not to create too many
non-clustered indexes, as mysql engine adds up the length along with primary index and
then execute the query
4. Maximum number of non-clustered indexes that can be created are 64
5. Try to avoid aggregate function as much as possible