Skip to main content

Module coldversions

Module coldversions 

Source
Expand description

Measures what an index “object to the ledgers that changed it” over cold history would take, and how an object at an old ledger reads through it. Writes nothing to the store.

The candidate format stores, for each key, the ledgers as ascending deltas in varints. A ledger number is enough to find the row, so no pointer into a segment is kept: the price is decoding that row on every read, and this measures the price too.

Structs§

Window
What to measure.

Functions§

measure
Measures one window. sample gets each object read through the index: key, ledger asked, ledger found and the object, empty if deleted there.
partitions_of
How many partitions of every ledgers a key’s ascending list touches.
put_list
Appends ascending seqs as deltas in varints; the first is absolute.
version_at
The ledger that holds a key’s version at at: the last one not after it.