MySQL优化-学习笔记(1) 1.数据库设计是否合理 三范式(3NF):原子性,完全依赖,禁止传递依赖 2.建立适当的索引 普通索引,唯一索引,主键索引,全文索引 3.分表技术 水平分割,垂直分割 4.读写分离【写操作:update,delete,insert】 5.存储过程【模块化
MySQL优化-学习笔记(1)
1.数据库设计是否合理
三范式(3NF):原子性,完全依赖,禁止传递依赖
2.建立适当的索引
普通索引,唯一索引,主键索引,全文索引
3.分表技术
水平分割,垂直分割
4.读写分离【写操作:update,delete,insert】
5.存储过程【模块化编程,可提高执行效率,但可移植性不强】
6.mysql配置优化:
最大并发数,缓存大小优化
7.mysql硬件升级
8.定时清除不需要的数据,及碎片整理
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn