tencent cloud

TDSQL Boundless

tdsql_cache_range_max_use_cnt

PDF
Focus Mode
Font Size
Last updated: 2026-03-27 17:59:23

Feature Description

tdsql_cache_range_max_use_cnt is used to set the maximum number of times the cached range information can be used before it becomes invalid. Caching range information can reduce disk access frequency, thereby improving query performance. When this limit is reached, the system removes the least recently used data blocks based on the LRU algorithm to free up space for new data blocks.
When adjusting the tdsql_cache_range_max_use_cnt parameter, you need to consider the following factors:
Cache hit rate: Increasing the value of the tdsql_cache_range_max_use_cnt parameter may improve the hit rate of range query cache, thus enhancing query performance. However, an extremely large value may cause the data blocks in the cache not to expire quickly enough, thereby reducing the effectiveness of the cache.
Monitor and optimize: Monitor server performance metrics such as CPU utilization, memory utilization, and disk I/O to determine whether the tdsql_cache_range_max_use_cnt parameter needs to be adjusted. If a performance bottleneck is identified, you can try to adjust the parameter to optimize performance.

Attribute Description

Required
Description
Parameter Type
ULONGLONG
Default Value
100000
Value Range
0 ~ 18446744073709551615
Effective Scope
GLOBAL
SESSION
Restart Required
No

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback