From a71191634f002cc7d7acfcc0047aafceefc1d2e0 Mon Sep 17 00:00:00 2001 From: lilin90 Date: Wed, 9 May 2018 10:39:41 +0800 Subject: [PATCH 1/2] sql: update tidb_batch_insert autocommit Via: https://github.com/pingcap/docs-cn/pull/721 --- sql/tidb-specific.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/tidb-specific.md b/sql/tidb-specific.md index 2650bbaf4661c..a2b307b7c8df6 100644 --- a/sql/tidb-specific.md +++ b/sql/tidb-specific.md @@ -135,8 +135,8 @@ If you need to set the global variable, run: - Scope: SESSION | GLOBAL - Default value: 0 -- This variable is used to set whether to divide the data for deletion automatically. -- When deleting a large amount of data, you can set the variable value to true. Then the data for deletion is automatically divided into multiple batches and each batch is deleted by a single transaction. +- This variable is used to set whether to divide the data for deletion automatically. It is valid only when `autocommit` is enabled. +- When deleting a large amount of data, you can set the variable value to true. Then the data for deletion is automatically divided into multiple batches and each batch is deleted by a single transaction. ### tidb_dml_batch_size From fd73b14aab62672356433bb5a84b62199c1542f6 Mon Sep 17 00:00:00 2001 From: lilin90 Date: Wed, 9 May 2018 10:50:44 +0800 Subject: [PATCH 2/2] sql: update tidb_batch_insert autocommit --- sql/tidb-specific.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/tidb-specific.md b/sql/tidb-specific.md index a2b307b7c8df6..9f5e1fdd7c310 100644 --- a/sql/tidb-specific.md +++ b/sql/tidb-specific.md @@ -128,7 +128,7 @@ If you need to set the global variable, run: - Scope: SESSION | GLOBAL - Default value: 0 -- This variable is used to set whether to divide the inserted data automatically. +- This variable is used to set whether to divide the inserted data automatically. It is valid only when `autocommit` is enabled. - When inserting a large amount of data, you can set the variable value to true. Then the inserted data is automatically divided into multiple batches and each batch is inserted by a single transaction. ### tidb_batch_delete