8.4 中文镜像

MySQL 8.4 参考手册 · 中文镜像

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

打开官方英文原文 ↗

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

MySQL 8.4 参考手册 / 10 优化 / 10.2 优化 SQL 语句 / 10.2.5 优化数据变更语句
中文点击中文段落可显示 / 隐藏英文原文本页译文覆盖 100%

10.2.5 优化数据更改语句10.2.5 Optimizing Data Change Statements

本节解释了如何加速数据更改语句:INSERT、UPDATE 和 DELETE。传统的 OLTP 应用程序和现代 Web 应用程序通常执行许多小规模的数据更改操作,此时并发性非常重要。数据分析和报表应用程序通常执行会影响多行的数据更改操作,其主要考虑因素是写入大量数据的 I/O 以及保持索引的最新状态。对于插入和更新大量数据(在业内称为 ETL,即“extract-transform-load”)时,有时会使用其他 SQL 语句或外部命令,来模拟 INSERT、UPDATE 和 DELETE 语句的效果。This section explains how to speed up data change statements: INSERT, UPDATE, and DELETE. Traditional OLTP applications and modern web applications typically do many small data change operations, where concurrency is vital. Data analysis and reporting applications typically run data change operations that affect many rows at once, where the main considerations is the I/O to write large amounts of data and keep indexes up-to-date. For inserting and updating large volumes of data (known in the industry as ETL, for “extract-transform-load”), sometimes you use other SQL statements or external commands, that mimic the effects of INSERT, UPDATE, and DELETE statements.