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

Method insert

nodedb/src/engine/kv/index.rs:48–53  ·  view source on GitHub ↗

Insert a (value, primary_key) pair into the index.

(&mut self, field_value: Vec<u8>, primary_key: Vec<u8>)

Source from the content-addressed store, hash-verified

46
47 /// Insert a (value, primary_key) pair into the index.
48 pub fn insert(&mut self, field_value: Vec<u8>, primary_key: Vec<u8>) {
49 self.tree
50 .entry(field_value)
51 .or_default()
52 .insert(primary_key);
53 }
54
55 /// Remove a (value, primary_key) pair from the index.
56 ///

Callers 15

setFunction · 0.45
update_db_pressureMethod · 0.45
dispatchMethod · 0.45
dispatch_to_coreMethod · 0.45
drain_completionsMethod · 0.45
prefetch_batchMethod · 0.45
scan_columnarMethod · 0.45
replay_vector_walMethod · 0.45

Calls 1

entryMethod · 0.80