Skip to main content

Module plan_cache

Module plan_cache 

Source
Expand description

Plan cache for the query planner

Provides an LRU cache with TTL-based expiry for caching physical execution plans. This avoids re-planning identical queries when the same query is submitted multiple times within the TTL window.

Structsยง

CacheKey
Cache key: a blake3 hash of the normalized query representation
CacheStats
Cache statistics
CachedPlan
A cached physical plan with metadata
PlanCache
LRU plan cache with TTL-based expiry
PlanCacheConfig
Configuration for the plan cache