fn visit_relevant_chunks(
    db: &EntityDb,
    entity_path: &EntityPath,
    component_name: Option<ComponentName>,
    timeline: Timeline,
    time_range: ResolvedTimeRange,
    visitor: impl FnMut(Arc<Chunk>, ResolvedTimeRange, u64)
)
Expand description

This is a wrapper over range_relevant_chunks which also supports querying the entire entity. Relevant chunks are those which:

  • Contain data for entity_path
  • Contain a component_name column (if provided)
  • Have data on the given timeline
  • Have data in the given time_range

The does not deduplicates chunks when no component_name is provided.