Several aspects that affect performance
- server
- hardware
- software
- database
- Selection of database storage engine (plug-in storage engine)
- Database parameter configuration (the impact is far greater than the previous ones)
- Database structure design and SQL statement
1. Server
- server hardware
- CPU intensive - does not support concurrent processing of the same SQL by multiple CPUs
- Concurrency
- RAM
- RAID increases the performance of traditional centralized hard drives
- Summarize
- CPU
- 64-bit CPU must work under 64-bit system
- For scenarios with high concurrency, the number of CPUs is more important than the frequency
- For CPU-intensive scenarios and complex SQL, the higher the frequency, the better
- RAM
- Select the highest frequency memory that the motherboard can use
- The size of the memory is important for performance, so make it as large as possible
- I/O Subsystem
- PCIe -> SSD -> Raid10 -> Disk -> SAN
- CPU
- server system
- Suitable operating system for MySQL
- The impact of the file system on performance
database
- Plug-in storage engine
- Mysia
- Innodb
Affects performance
- Excessive anti-paradigm design table
- Too many table associations due to excessive normalization (up to 10)
- Using Inappropriate Partition Tables in an OLTP Environment
- Use foreign keys to ensure data integrity
performance optimization order
- Database structure design and SQL statement
- Database storage engine selection and parameter configuration
- System selection and optimization
- hardware upgrade
Related Links
: Examples and Stories of Database Optimization
Author: Fufeng
Blog Park: http://www.cnblogs.com/mylly/
All rights reserved, please keep the original link for reprinting:)