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

Method drain_optimized

nodedb-columnar/src/memtable/mod.rs:172–175  ·  view source on GitHub ↗

Drain with automatic dictionary encoding for low-cardinality String columns.

(&mut self)

Source from the content-addressed store, hash-verified

170
171 /// Drain with automatic dictionary encoding for low-cardinality String columns.
172 pub fn drain_optimized(&mut self) -> (ColumnarSchema, Vec<ColumnData>, usize) {
173 self.try_dict_encode_columns(DICT_ENCODE_MAX_CARDINALITY);
174 self.drain()
175 }
176
177 /// Zero-copy row ingest for timeseries and high-throughput paths.
178 ///

Callers 1

Calls 2

drainMethod · 0.45

Tested by

no test coverage detected