All Products
Search
Document Center

PolarDB:Polar.ai.lru_entity_size

Last Updated:Mar 28, 2026

polar.ai.lru_entity_size (Integer) controls the number of AI model metadata entries kept in the LRU cache. Valid values are 0–100. The default is 4, meaning the system caches metadata for up to 4 models. Changes take effect only after reconnecting to the system.

Examples

Set the model cache size for the current session:

SET polar.ai.lru_entity_size = 8;

Set the model cache size as the default for a specific database:

ALTER DATABASE <database_name> SET polar.ai.lru_entity_size = 10;

Replace <database_name> with the name of the target database.