Mysql Optimization Overview

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Mysql Optimization Overview相关的知识,希望对你有一定的参考价值。

The information below i get from http://dev.mysql.com/doc/refman/8.0/en/optimize-overview.html

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?

5. Does the application use an appropriate locking strategy

6. Are all memory areas used for caching sized correctly?

Optimizing at the Hardware Level

System bottlenecks typically arise from these sources

1. Disk seeks. It takes time for the disk to find a piece of data

2. Disk reading and writing

3. CPU cycle

4. Memory bandwidth

 

以上是关于Mysql Optimization Overview的主要内容,如果未能解决你的问题,请参考以下文章

MySQL Optimization 优化原理

MySQL 派生表(Derived Table) Merge Optimization

mysql官方文档之Optimization(8.8 Understanding the Query Execution Plan)

mysql 官方文档之Optimization( 8.2 Optimizing SQL Statements)

mysql 官方文档之Optimization( 8.2 Optimizing SQL Statements)

Index Condition Pushdown Optimization