MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _lru_size_alert

Method _lru_size_alert

lib/sqlalchemy/engine/base.py:2958–2965  ·  view source on GitHub ↗
(self, cache: util.LRUCache[Any, Any])

Source from the content-addressed store, hash-verified

2956 self.update_execution_options(**execution_options)
2957
2958 def _lru_size_alert(self, cache: util.LRUCache[Any, Any]) -> None:
2959 if self._should_log_info():
2960 self.logger.info(
2961 "Compiled cache size pruning from %d items to %d. "
2962 "Increase cache size to reduce the frequency of pruning.",
2963 len(cache),
2964 cache.capacity,
2965 )
2966
2967 @property
2968 def engine(self) -> Engine:

Callers

nothing calls this directly

Calls 2

_should_log_infoMethod · 0.80
infoMethod · 0.45

Tested by

no test coverage detected