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

Method dedup

nodedb/src/engine/timeseries/o3_buffer.rs:84–88  ·  view source on GitHub ↗

Dedup by (series_id, timestamp) — last-write-wins. Call before merge to handle retries/replays.

(&mut self)

Source from the content-addressed store, hash-verified

82 ///
83 /// Call before merge to handle retries/replays.
84 pub fn dedup(&mut self) {
85 self.ensure_sorted();
86 self.rows
87 .dedup_by(|a, b| a.series_id == b.series_id && a.timestamp_ms == b.timestamp_ms);
88 }
89
90 fn ensure_sorted(&mut self) {
91 if !self.sorted {

Callers 15

nearby_searchMethod · 0.80
encodeFunction · 0.80
find_best_cutFunction · 0.80
newMethod · 0.80
trainMethod · 0.80
newMethod · 0.80
cuid2_uniquenessFunction · 0.80
fuzzy_lookupMethod · 0.80
parse_generated_exprFunction · 0.80
array_vshards_for_sliceFunction · 0.80

Calls 1

ensure_sortedMethod · 0.80

Tested by 5

cuid2_uniquenessFunction · 0.64
concurrent_32x50_uniqueFunction · 0.64
dedup_last_write_winsFunction · 0.64