8.4 中文镜像

MySQL 8.4 参考手册 · 中文镜像

正文为中文,英文原文默认隐藏。点击任意中文段落即可展开 / 收起对应英文原文。

打开官方英文原文 ↗

译文由机器翻译生成,仅供理解参考;有疑问请以官方英文原文为准。

中文点击中文段落可显示 / 隐藏英文原文本页译文覆盖 100%

第 10 章 优化Chapter 10 Optimization

本章解释了如何优化 MySQL 性能并提供示例。优化涉及在多个层面上配置、调优和测量性能。根据您的职位(开发人员、数据库管理员,或两者兼具),您可能会在单个 SQL 语句、整个应用程序、单个数据库服务器或多个网络数据库服务器层面进行优化。有时您可以主动规划性能,而其他时候您可能需要在问题发生后排查配置或代码问题。优化 CPU 和内存使用也可以提高可扩展性,使数据库在不降低速度的情况下处理更多负载。This chapter explains how to optimize MySQL performance and provides examples. Optimization involves configuring, tuning, and measuring performance, at several levels. Depending on your job role (developer, DBA, or a combination of both), you might optimize at the level of individual SQL statements, entire applications, a single database server, or multiple networked database servers. Sometimes you can be proactive and plan in advance for performance, while other times you might troubleshoot a configuration or code issue after a problem occurs. Optimizing CPU and memory usage can also improve scalability, allowing the database to handle more load without slowing down.