Expand description
Synthetic data generation and direct persist writes. This supports the direct-write use case; the mechanism does not depend on it.
Enums§
Functions§
- pack_
cells - Pack one row from owned cells, in column order.
- rows_
for_ bytes - Number of rows needed to roughly hit
target_bytesgivenpad-wide payloads. Overhead per row is approximate; coarse sizing, not exact. - sample_
desc - A two-column
(bigint, text)schema used as the default for the generators and the script reader. - sample_
rows - Builds
nrows of thesample_descschema;payloadispadbytes wide so callers can target a byte budget (≈n * (pad + overhead)). - sample_
rows_ from - Like
sample_rows, but ids runstart..start + n. Successive batches with disjoint id ranges produce distinct rows that never consolidate with each other, so a downstream count equals the total rows written. - synth_
cell - A deterministic synthetic value for a column of
scalar_typeat row indexi. - synth_
rows - Generate
nsynthetic rows fordesc, with row indices runningstart..start + n. - write_
rows_ single_ ts - Writes
rowstoshardatts, advancinguppertots+1. All rows are inserted with diff+1. Returns once the append succeeds. - write_
rows_ spread - Writes
rowsspread across timestamps0..n_ts(rowiat timei % n_ts) in a single append that seals[0, n_ts). All rows are inserted with diff+1. This is onecompare_and_appendregardless ofn_ts— persist accepts updates at any timestamp within the sealed range — so it stays fast even for very largen_ts(a per-timestamp append would ben_tsconsensus round-trips).