暂无图片
暂无图片
2
暂无图片
暂无图片
暂无图片
MySQL Performance Tuning.pdf
94
152页
6次
2024-12-13
5墨值下载
MySQL
Performance
Tuning
Strategies, best practices, and tips from
Percona MySQL experts
2
Contents
MySQL Performance Tuning 3
Query optimization 4
How to Find and Tune a Slow SQL Query ������������������������������������������������������������������������������������������������������������������������������������������������������������������� 5
MySQL Query Performance Troubleshooting: Resource-Based Approach ����������������������������������������������������������������������������11
Using Slow Query Log to Find High Load Spots in MySQL �������������������������������������������������������������������������������������������������������������������������17
MySQL Key Performance Indicators (KPI) with PMM ������������������������������������������������������������������������������������������������������������������������������������ 22
How Percona Monitoring and Management Helps You Find Out Why Your MySQL Server Is Stalling ������30
Proper conguration 36
Easily Validate Conguration Settings in MySQL 8 ���������������������������������������������������������������������������������������������������������������������������������������37
Don’t Start Using Your MySQL Server Until You’ve Congured Your OS ������������������������������������������������������������������������������������40
Indexing 46
MySQL Query Performance: ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ 47
Not Just Indexes �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������47
Putting the Fun in MySQL Functional Indexes ���������������������������������������������������������������������������������������������������������������������������������������������������� 50
Duplicate, Redundant, and Invisible Indexes ���������������������������������������������������������������������������������������������������������������������������������������������������� 55
An Overview of Indexes in MySQL 8.0: MySQL CREATE INDEX, Functional Indexes, and More ������������������������������ 60
Basic Housekeeping for MySQL Indexes �����������������������������������������������������������������������������������������������������������������������������������������������������������������69
Memory/resource allocation 75
Tuning MySQL After Upgrading Memory �����������������������������������������������������������������������������������������������������������������������������������������������������������������76
Setting up Resource Limits on Users in MySQL ���������������������������������������������������������������������������������������������������������������������������������������������������81
Understanding MySQL Memory Usage with Performance Schema ������������������������������������������������������������������������������������������ 84
MySQL Capacity Planning ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� 89
InnoDB conguration 93
InnoDB Performance Optimization Basics ����������������������������������������������������������������������������������������������������������������������������������������������������������� 94
Tuning MySQL/InnoDB Flushing for a Write-Intensive Workload ���������������������������������������������������������������������������������������������������� 98
InnoDB File Growth Weirdness �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������105
Data caching 108
MySQL Data Caching Efciency �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������109
Impact of Querying Table Information From information_schema ������������������������������������������������������������������������������������������ 113
Partitioning 118
The Ultimate Guide to MySQL Partitions ������������������������������������������������������������������������������������������������������������������������������������������������������������������119
Quick Data Archival in MySQL Using Partitions �����������������������������������������������������������������������������������������������������������������������������������������������125
Schema design 131
Deep Dive Into MySQL Performance Schema ������������������������������������������������������������������������������������������������������������������������������������������������� 132
Cost optimization 146
Seven Ways To Reduce MySQL Costs in the Cloud ������������������������������������������������������������������������������������������������������������������������������������147
Conclusion 151
3
MySQL Performance Tuning
Strategies, best practices, and tips from Percona MySQL experts
Welcome to MySQL Performance Tuning, an essential compilation of the most
sought-after MySQL wisdom and insights from the Percona blog� This ebook is not
intended to be an exhaustive manual on MySQL performance; it serves as an expert
companion piece, providing a curated selection of the greatest hits penned by
Percona’s MySQL professionals, who have decades of experience solving complex
database performance issues� Inside, we will cover the critical aspects of MySQL
performance optimization, guided by seasoned experts who share their invaluable
experiences and tested solutions�
Each chapter in this comprehensive collection focuses on a unique aspect of
MySQL optimization, ranging from query optimization and memory/resource
allocation to partitioning and schema design� It is designed to provide you with
an array of strategies, tips, and best practices that have been proven to enhance
the performance of MySQL databases� Whether you’re a database administrator,
developer, or system architect, this compilation provides a unique opportunity to
benet from the combined experience of Percona’s MySQL experts.
MySQL Performance Tuning will help you make informed decisions that ensure your
databases are running at their best� Get ready to elevate your MySQL databases to
new levels of efciency and performance!
of 152
5墨值下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。