pub struct AnalyzeSource {
pub table: String,
pub node: u32,
pub emitted: u64,
pub scanned: Option<u64>,
pub fullscan_steps: Option<u64>,
pub ratio: Option<f64>,
pub advisory: Option<String>,
pub sqlite_plan: Option<String>,
pub scanned_kind: &'static str,
}Expand description
The numbers for one source leaf — the row the CLI renders per table.
Fields§
§table: StringSource table name.
node: u32The throwaway pipeline’s source NodeId index (correlation only; the graph is gone).
emitted: u64Rows this source vended into the pipeline — the CountingSource tally. Backend-
agnostic (memory or SQLite), the one number available even without the feature.
scanned: Option<u64>SQLite scan work proxy (vm_steps) for this leaf — None when the analyze
feature (⇒ scan-stats) is off, or on a memory source (no SQLite). This is a v1
work-proxy, not a row count; the true rows-visited (NVISIT) row-ratio is v2.
fullscan_steps: Option<u64>Rows an un-indexed full scan stepped over (fullscan_steps) — the direct
“a missing index made SQLite scan this table” signal. None without the feature.
ratio: Option<f64>scanned / emitted (work per emitted row). None when scanned is unavailable or
emitted == 0. The lead diagnostic: a good index keeps it near-flat; a missing one
makes it explode.
advisory: Option<String>A concrete CREATE INDEX … line, present when this leaf full-scanned and the static
advisory (derive_query) names an index for it (§3.5).
sqlite_plan: Option<String>The SQLite access path chosen for this leaf’s SELECT — the planner’s EXPLAIN
text ("SCAN comments" vs "SEARCH comments USING INDEX …"). None without the
analyze feature. The plain-language companion to the ratio: a full SCAN on an
amplified leaf is the smoking gun the number flags.
scanned_kind: &'static strWhat scanned measures, for honest rendering: "vm_steps (work proxy)" when the
feature is on, else "unavailable".
Trait Implementations§
Source§impl Clone for AnalyzeSource
impl Clone for AnalyzeSource
Source§fn clone(&self) -> AnalyzeSource
fn clone(&self) -> AnalyzeSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more