All Products
Search
Document Center

PolarDB:Polar.ai.lru_entity_size

Last Updated:Apr 09, 2025

Sets the model cache size.

Data types

Integer

Values

Valid values: 0 to 100. Default value: 4.

Description

The new model cache size take effects only after a reconnection to the system. By default, the system caches metadata for up to 4 models.

Examples

  • Set the model cache size for the current session.

    SET polar.ai.lru_entity_size = 8;
  • Set the model cache size for a specific database.

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