Overview of MySQL Optimization
Optimization at the database level
Database performance depends on several factors at the database level, such as tables, queries, and configuration settings.
1. Are the tables structured properly?
2. In particular, do the columns have the right data types, and does each table have the appropriate columns for the type of work?
3. Are the right indexes in place to make queries efficient?
4. Are you using the appropriate storage engine for each table?