diff --git a/system-variables.md b/system-variables.md index d736b0cac6381..dd168da0d23e5 100644 --- a/system-variables.md +++ b/system-variables.md @@ -5628,6 +5628,7 @@ SHOW WARNINGS; - Before TiDB v8.4.0, the default value of this variable is `0`. - Starting from TiDB v8.4.0, the default value is `536870912`. When you upgrade from an earlier version to v8.4.0 or later, the old value set in the earlier version is used. - This variable controls the size of the schema cache in TiDB. The unit is byte. Setting this variable to `0` means the cache limit feature is disabled. To enable this feature, you need to set a value within the range `[67108864, 9223372036854775807]`. TiDB will use this value as the maximum available memory limit and apply the Least Recently Used (LRU) algorithm to cache the required tables, effectively reducing the memory used by schema information. +- If your cluster contains a large number of partitioned tables, or if you frequently perform DDL operations on partitioned tables (such as `TRUNCATE` or `DROP PARTITION`), it is recommended that you set this variable to `0`. ### tidb_schema_version_cache_limit New in v7.4.0