Skip to content

Commit 0712df2

Browse files
authored
Apply suggestions from code review
1 parent c913a53 commit 0712df2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tidb-configuration-file.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,12 +728,13 @@ Configuration items related to opentracing.reporter.
728728

729729
### `batch-policy` <span class="version-mark">New in v8.3.0</span>
730730

731-
- Controls the batching strategy for requests from TiDB to TiKV.
731+
- Controls the batching strategy for requests from TiDB to TiKV. When sending requests to TiKV, TiDB always encapsulates the requests in the current waiting queue into a `BatchCommandsRequest` and sends it to TiKV as a package. This is the basic batching strategy. When the load throughput is high, TiDB decides whether to wait for an extra period after the basic batching based on the `batch-policy` configuration item. This additional batching allows more requests to be encapsulated in a single `BatchCommandsRequest`.
732732
- Default value: `"standard"`
733733
- Value options:
734734
- `"basic"`: the behavior is consistent with versions before v8.3.0, where TiDB performs additional batching only if [`tikv-client.max-batch-wait-time`](#max-batch-wait-time) is greater than 0 and the load of TiKV exceeds the value of [`tikv-client.overload-threshold`](#overload-threshold).
735735
- `"standard"`: TiDB dynamically batches requests based the arrival time intervals of recent requests, suitable for high-throughput scenarios.
736736
- `"positive"`: TiDB always performs additional batching, suitable for high-throughput testing scenarios to achieve optimal performance. However, in low-load scenarios, this strategy might introduce unnecessary batching wait time, potentially reducing performance.
737+
- `"custom{...}"`: you can customize the batching strategy parameters. It is not recommended to set this value option.
737738

738739
### `max-batch-size`
739740

0 commit comments

Comments
 (0)