MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / set_query_tuning

Method set_query_tuning

nodedb/src/data/executor/core_loop/maintenance.rs:103–108  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 ///

Callers 1

spawn_coreFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected