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

Method record

nodedb-vector/src/sieve/workload.rs:39–44  ·  view source on GitHub ↗

Record a query that used the given predicate signature.

(&mut self, signature: PredicateSignature, timestamp_secs: u64)

Source from the content-addressed store, hash-verified

37
38 /// Record a query that used the given predicate signature.
39 pub fn record(&mut self, signature: PredicateSignature, timestamp_secs: u64) {
40 self.log.push(QueryRecord {
41 predicate_signature: signature,
42 timestamp_secs,
43 });
44 }
45
46 /// Returns `(signature, frequency)` pairs sorted by frequency descending,
47 /// filtered to those whose frequency exceeds `stable_fraction_threshold`.

Calls 1

pushMethod · 0.45