tencent cloud

TDSQL Boundless

tdsql_auto_increment_batch_size

다운로드
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-05-26 16:30:20

Feature Description

tdsql_auto_increment_batch_size specifies the number of auto-increment values that SQLEngine obtains in a single operation. The auto-increment sequence is stored on storage nodes. In certain scenarios, to improve insertion performance, the system can allocate consecutive auto-increment values for multiple insert operations at once, thereby reducing the overhead of the auto-increment generator. By adjusting the tdsql_auto_increment_batch_size parameter, you can control the size of this batch allocation.
When the tdsql_auto_increment_batch_size parameter is adjusted, you need to consider the following factors:
Insertion performance: Increasing the value of the tdsql_auto_increment_batch_size parameter may improve insertion performance, especially during batch data insertion. However, an excessively large value may increase the risk of auto-increment value exhaustion.
Auto-increment value exhaustion: The value of the tdsql_auto_increment_batch_size parameter should not be set too high to avoid the risk of auto-increment value exhaustion. For example, if the data type of the auto-increment column is INT with a maximum value of 231-1, then the maximum value of the tdsql_auto_increment_batch_size parameter should be less than 231/ the number of insert operations.
Monitoring and Tuning: Monitor server performance metrics, such as CPU utilization, memory utilization, and disk I/O, to determine whether you need to adjust the tdsql_auto_increment_batch_size parameter. If a performance bottleneck is identified, you can try adjusting this parameter to optimize performance.

Attribute Description

Required
Description
Parameter Type
UINT
Default Value
100
Value Range
1 ~ 10000
Effective Scope
GLOBAL
Restart Required
No

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백