From b24b53112c03730e4b9ee9fd81fdc4941f8322ec Mon Sep 17 00:00:00 2001 From: Joyinqin Date: Fri, 12 Mar 2021 16:17:54 +0800 Subject: [PATCH 1/3] Update tidb-configuration-file.md --- tidb-configuration-file.md | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/tidb-configuration-file.md b/tidb-configuration-file.md index ace2736ef34cc..ee32cbe500729 100644 --- a/tidb-configuration-file.md +++ b/tidb-configuration-file.md @@ -417,11 +417,6 @@ Configuration items related to performance. The Plan Cache configuration of the `PREPARE` statement. -### `enabled` - -- Determines whether to enable Plan Cache of the `PREPARE` statement. -- Default value: `true` - ### `capacity` - The number of cached statements. @@ -505,30 +500,11 @@ This section introduces configuration items related to the Coprocessor Cache fea ### `capacity-mb` -- The total size of the cached data. When the cache space is full, old cache entries are evicted. +- The total size of the cached data. When the cache space is full, old cache entries are evicted. When the value is `0.0`, it means to disable Coprocessor Cache. - Default value: `1000.0` - Unit: MB - Type: Float -### `admission-max-result-mb` - -- Specifies the largest single push-down calculation result set that can be cached. If the result set of a single push-down calculation returned on the Coprocessor is less than the result set specified by this parameter, the result set is cached. Increasing this value means that more types of push-down requests are cached, but also cause the cache space to be occupied more easily. Note that the size of each push-down calculation result set is generally smaller than the size of the Region. Therefore, it is meaningless to set this value far beyond the size of a Region. -- Default value: `10.0` -- Unit: MB -- Type: Float - -### `admission-min-process-ms` - -- Specifies the minimum calculation time for a single push-down calculation result set that can be cached. If the calculation time of a single push-down calculation on the Coprocessor is less than the time specified by this parameter, the result set is not cached. Requests that are processed quickly do not need to be cached, and only the requests that take a long time to process need to be cached, which makes the cache less likely to be evicted. -- Default value: `5` -- Unit: ms - -### `admission-max-ranges` New in v4.0.8 - -+ Specifies the maximum number of ranges in a single push-down calculation result set that can be cached. If the push-down calculation has more ranges than the number specified by this configuration, the result set will not be cached. Generally, when there are too many ranges, the extra calculation overhead of parsing the range brought by Coprocessor Cache is large. -+ Default value: `500` -+ Type: uint - ### txn-local-latches Configuration related to the transaction latch. It is recommended to enable it when many local transaction conflicts occur. From 88091c93254f9668c72082e60d02f561ae5c3fc8 Mon Sep 17 00:00:00 2001 From: Joyinqin Date: Fri, 12 Mar 2021 16:22:48 +0800 Subject: [PATCH 2/3] Update tidb-configuration-file.md --- tidb-configuration-file.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tidb-configuration-file.md b/tidb-configuration-file.md index ee32cbe500729..73942eb9b92e0 100644 --- a/tidb-configuration-file.md +++ b/tidb-configuration-file.md @@ -500,7 +500,7 @@ This section introduces configuration items related to the Coprocessor Cache fea ### `capacity-mb` -- The total size of the cached data. When the cache space is full, old cache entries are evicted. When the value is `0.0`, it means to disable Coprocessor Cache. +- The total size of the cached data. When the cache space is full, old cache entries are evicted. When the value is `0.0`, it means to disable the Coprocessor Cache feature. - Default value: `1000.0` - Unit: MB - Type: Float From a72b85e36ead4a20151fdffb8dcda6c1339089d8 Mon Sep 17 00:00:00 2001 From: JoyinQ <56883733+Joyinqin@users.noreply.github.com> Date: Fri, 12 Mar 2021 16:46:37 +0800 Subject: [PATCH 3/3] Apply suggestions from code review Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com> --- tidb-configuration-file.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tidb-configuration-file.md b/tidb-configuration-file.md index 73942eb9b92e0..7f56557e70f0b 100644 --- a/tidb-configuration-file.md +++ b/tidb-configuration-file.md @@ -500,7 +500,7 @@ This section introduces configuration items related to the Coprocessor Cache fea ### `capacity-mb` -- The total size of the cached data. When the cache space is full, old cache entries are evicted. When the value is `0.0`, it means to disable the Coprocessor Cache feature. +- The total size of the cached data. When the cache space is full, old cache entries are evicted. When the value is `0.0`, the Coprocessor Cache feature is disabled. - Default value: `1000.0` - Unit: MB - Type: Float