Skip to main content

Module stash

Module stash 

Source
Expand description

The upsert-v2 source stash: the consolidating diff, the stash batcher types, and the UpsertStashArm.

Structs§

ChunkedArm 🔒
The chunked flavor: time-major UpsertChunkBatcher stash, FeedbackSpine feedback arrangement, bulk-probe drain.
UpsertDiff 🔒
UpsertDiffContainer 🔒
Derived columnar container for a struct.
UpsertDiffReference 🔒
Derived columnar reference for a struct.

Traits§

UpsertStashArm 🔒
The pieces of the upsert-v2 operator that depend on the stash representation: the stash batcher, the feedback arrangement’s spine, and how the drain reads prior state. build_upsert_operator holds the operator loop and calls through this trait at those points.

Functions§

flush_through 🔒
The shared body of the arms’ flush: writes each update into a raw column through record, consolidates it through chunker, and hands each readied chunk to push.
next_outer 🔒
The least time past every time sharing ts’s mz_repr::Timestamp, or None when that timestamp is the maximum.
seal_upper 🔒
The start of the mz_repr::Timestamp after persist_upper’s, capped at input_upper so no unfinalized time is extracted.

Type Aliases§

TimeMajorChunker 🔒
The chunker that sorts and consolidates raw input into the time-major Column chunks the stash batcher consumes.
TimeMajorUpdate 🔒
One chunked-flavor stash update: UpsertUpdate with the time copied into the data, so the batcher sorts by (time, key).
UpsertChunk 🔒
One chunked-flavor stash chunk: a sorted, consolidated run of time-major updates, resident or spilled to the buffer pool.
UpsertChunkBatcher 🔒
The chunked flavor’s stash: differential’s chunk merge batcher over ColumnChunks. Data is pushed in unsorted. The batcher maintains geometrically-sized sorted chains and consolidates via the UpsertDiff Semigroup automatically. Committed chunks spill their bodies to the process buffer pool (see mz_timely_util::columnar::chunk), so the not-yet-eligible backlog (the snapshot / persist-lag window) pages out of RSS instead of growing it.
UpsertUpdate 🔒
One source-stash update: a key, its dataflow time, and the payload diff. O is the columnar order key projected from the source FromTime (see UpsertSourceTime).