Clear all cached plans
(&self)
| 490 | |
| 491 | /// Clear all cached plans |
| 492 | pub fn clear_cache(&self) { |
| 493 | let mut plans = self.query_plans.write().unwrap(); |
| 494 | plans.clear(); |
| 495 | |
| 496 | info!("Cleared read-only optimizer cache"); |
| 497 | } |
| 498 | |
| 499 | /// Get cache hit rate |
| 500 | pub fn get_cache_hit_rate(&self) -> f64 { |