pub(crate) fn timedomain_for<'a, I>(
catalog: &Catalog,
dataflow_builder: &DataflowBuilder<'_>,
uses_ids: I,
timeline_context: &TimelineContext,
conn_id: &ConnectionId,
compute_instance: ComputeInstanceId,
) -> Result<CollectionIdBundle, AdapterError>where
I: IntoIterator<Item = &'a GlobalId>,Expand description
Return the set of ids in a timedomain and verify timeline correctness.
When a user starts a transaction, we need to prevent compaction of anything they might read from. We use a heuristic of “anything in the same database schemas with the same timeline as whatever the first query is”.
This is a free-standing function that can be called from both the old peek sequencing and the new frontend peek sequencing.