Generate a normalized cache key for the query
(&self, query: &str)
| 181 | |
| 182 | /// Generate a normalized cache key for the query |
| 183 | fn generate_cache_key(&self, query: &str) -> String { |
| 184 | // Simple normalization - remove extra whitespace and convert to lowercase |
| 185 | query |
| 186 | .split_whitespace() |
| 187 | .collect::<Vec<_>>() |
| 188 | .join(" ") |
| 189 | .to_lowercase() |
| 190 | } |
| 191 | |
| 192 | /// Get cached query plan if available |
| 193 | fn get_cached_plan(&self, cache_key: &str) -> Option<CachedQueryPlan> { |
no outgoing calls