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

Method list_all_fts_collections

nodedb/src/engine/sparse/inverted/compaction.rs:44–54  ·  view source on GitHub ↗

Enumerate every `(TenantId, collection)` pair that has at least one FTS segment in the backing store. Used by the maintenance cycle to discover compaction candidates without requiring a separate in-memory registry of FTS-indexed collections.

(&self)

Source from the content-addressed store, hash-verified

42 /// without requiring a separate in-memory registry of FTS-indexed
43 /// collections.
44 pub fn list_all_fts_collections(&self) -> crate::Result<Vec<(TenantId, String)>> {
45 self.inner
46 .backend()
47 .list_all_fts_collections()
48 .map(|pairs| {
49 pairs
50 .into_iter()
51 .map(|(t, c)| (TenantId::new(t), c))
52 .collect()
53 })
54 }
55}

Callers 1

run_fts_compactionMethod · 0.45

Calls 2

collectMethod · 0.80
backendMethod · 0.45

Tested by

no test coverage detected