Divides measured charged rows into data and index maintenance, given the schema's charge factors.
The exact answer overheadShare() cannot give, and it needs an input that tally alone does not
carry: how many charged rows one stored row costs on each table. That comes from the schema --
chargePerInsertedRow() in scripts/measure/index-audit.ts derives it and
tests/unit/db/index-charge-model.spec.ts measures it against real Durable Object SQL.
Reports exact: false rather than rounding when a table's total is not a whole multiple of its
factor. A non-integer means the writes were not all fresh single-row inserts, and rounding it away
would turn a wrong assumption about the statements into a confident number.
Divides measured charged rows into data and index maintenance, given the schema's charge factors.
The exact answer
overheadShare()cannot give, and it needs an input that tally alone does not carry: how many charged rows one stored row costs on each table. That comes from the schema --chargePerInsertedRow()inscripts/measure/index-audit.tsderives it andtests/unit/db/index-charge-model.spec.tsmeasures it against real Durable Object SQL.Reports
exact: falserather than rounding when a table's total is not a whole multiple of its factor. A non-integer means the writes were not all fresh single-row inserts, and rounding it away would turn a wrong assumption about the statements into a confident number.