My sql optimization

306 views

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
306
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
3
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

My sql optimization

  1. 1. MySQL Optimization Marko Novaković
  2. 2. MySQL OptimizationQuery OptimizationDatabase ModelMySQL ConfigurationHardware Issues
  3. 3. Query OptimizationQueries that dont 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.
  4. 4. Database ModelAll 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.
  5. 5. MySQL Configurationskip-name-resolvequery_cache_size = 16Mlog-slow-queries=/var/log/slowqueries.logMySQL Tuner
  6. 6. Hardware IssuesNumber of hard drives / RAID.RAM memory makes bigger cache.CPUReplicationPartitioning
  7. 7. Thank You! Questions?email: atisha34@gmail.com

×