Module batch

Source
Expand description

A handle to a batch of updates

StructsΒ§

Batch
A handle to a batch of updates that has been written to blob storage but which has not yet been appended to a shard.
BatchBuilder
A builder for Batches that allows adding updates piece by piece and then finishing it.
BatchBuilderConfig
A snapshot of dynamic configs to make it easier to reason about an individual run of BatchBuilder.
BatchBuilderInternal πŸ”’
BatchParts πŸ”’
PartDeletes πŸ”’
ProtoBatch
RunWithMeta πŸ”’
UntrimmableColumns πŸ”’
A list of (lowercase) column names that persist will always retain stats for, even if it means going over the stats budget.

EnumsΒ§

Added
Indicates what work was done in a call to BatchBuilder::add
WritingRuns πŸ”’

ConstantsΒ§

BATCH_DELETE_ENABLED πŸ”’
BLOB_TARGET_SIZE πŸ”’
A target maximum size of blob payloads in bytes. If a logical β€œbatch” is bigger than this, it will be broken up into smaller, independent pieces. This is best-effort, not a guarantee (though as of 2022-06-09, we happen to always respect it). This target size doesn’t apply for an individual update that exceeds it in size, but that scenario is almost certainly a mis-use of the system.
ENCODING_COMPRESSION_FORMAT πŸ”’
ENCODING_ENABLE_DICTIONARY πŸ”’
INLINE_WRITES_SINGLE_MAX_BYTES πŸ”’
INLINE_WRITES_TOTAL_MAX_BYTES πŸ”’
MAX_RUNS πŸ”’
MAX_RUN_LEN πŸ”’
STRUCTURED_KEY_LOWER_LEN πŸ”’

FunctionsΒ§

diffs_sum πŸ”’
Returns the total sum of diffs or None if there were no updates.
validate_truncate_batch πŸ”’