Get comprehensive cache statistics
(&self)
| 490 | |
| 491 | /// Get comprehensive cache statistics |
| 492 | pub fn get_stats(&self) -> CacheManagerStats { |
| 493 | let result_stats = self.result_cache.stats(); |
| 494 | let plan_stats = self.plan_cache.stats(); |
| 495 | let subquery_stats = self.subquery_cache.stats(); |
| 496 | let global_stats = self.global_stats.read().unwrap().clone(); |
| 497 | let efficiency_metrics = self.plan_cache.efficiency_metrics(); |
| 498 | |
| 499 | CacheManagerStats { |
| 500 | global: global_stats, |
| 501 | result_cache: result_stats, |
| 502 | plan_cache: plan_stats, |
| 503 | subquery_cache: Some(subquery_stats), |
| 504 | efficiency: efficiency_metrics, |
| 505 | config: self.config.clone(), |
| 506 | graph_version: *self.graph_version.read().unwrap(), |
| 507 | schema_version: *self.schema_version.read().unwrap(), |
| 508 | } |
| 509 | } |
| 510 | |
| 511 | /// Get current graph version (for session catalog caching) |
| 512 | pub fn get_graph_version(&self) -> u64 { |
no test coverage detected