tencent cloud

TDSQL Boundless

table_open_cache

PDF
Focus Mode
Font Size
Last updated: 2026-03-27 17:55:49

Feature Description

table_open_cache is used to set the number of open cached table objects. When a table is opened, the system stores its structural information in the table cache for reuse in subsequent queries. The value of the table_open_cache parameter indicates the maximum number of tables that can be opened simultaneously. When this limit is reached, the system closes the LRU table based on the LRU algorithm to free up space for new tables.
When adjusting the table_open_cache parameter, you need to consider the following factors:
Memory limit: Increasing the value of the table_open_cache parameter may occupy more memory. Ensure that the server has sufficient memory to accommodate a larger table cache.
Number and frequency of use of tables: Adjust the table_open_cache parameter based on the number and frequency of use of tables in the database. If many tables are in the database and are frequently accessed, the value of the table_open_cache parameter can be increased appropriately.
Monitor and optimize: Monitor server performance metrics such as CPU utilization, memory utilization, and disk I/O to determine whether the table_open_cache 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
ULONG
Default Value
4294967295
Value Range
1 ~ 4294967295
Effective Scope
GLOBAL
Restart Required
No

Help and Support

Was this page helpful?

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

Feedback