MySQL Optimization
     Marko Novaković
MySQL Optimization


Query Optimization

Database Model

MySQL Configuration

Hardware Issues
Query Optimization
Queries that don't use indexes.

Queries that use SELECT *.

Queries that search full-text fields.

Queries that are not properly limited.

Queries that use ORDER BY unnecessarily.

Insert, update and delete optimization.
Database Model

All tables should have primary keys.

Database should be properly normalized.

Using simpler permissions.

Using char and md5 instead blob.

Do not split columns in more tables.

Specify column if not null and add defaults.
MySQL Configuration


skip-name-resolve

query_cache_size = 16M

log-slow-queries=/var/log/slowqueries.log

MySQL Tuner
Hardware Issues

Number of hard drives / RAID.

RAM memory makes bigger cache.

CPU

Replication

Partitioning
Thank You!
        Questions?
email: atisha34@gmail.com

My sql optimization