Set query execution tuning parameters (called after open, before event loop). Also resizes the doc cache if `doc_cache_entries` differs from the current size. Resizing clears all cached entries.
(&mut self, tuning: nodedb_types::config::tuning::QueryTuning)
| 101 | /// Also resizes the doc cache if `doc_cache_entries` differs from the current size. |
| 102 | /// Resizing clears all cached entries. |
| 103 | pub fn set_query_tuning(&mut self, tuning: nodedb_types::config::tuning::QueryTuning) { |
| 104 | if tuning.doc_cache_entries != self.query_tuning.doc_cache_entries { |
| 105 | self.doc_cache = DocCache::new(tuning.doc_cache_entries); |
| 106 | } |
| 107 | self.query_tuning = tuning; |
| 108 | } |
| 109 | |
| 110 | /// Apply secondary index extraction for a document (opens its own txn). |
| 111 | /// |