drupflare/worker - v1.0.0
    Preparing search index...

    Type Alias WriteTally

    type WriteTally = {
        byTable: Record<string, number>;
        rowsWritten: number;
        shapes?: Record<string, number>;
        statements: number;
        statementsByTable: Record<string, number>;
    }
    Index
    byTable: Record<string, number>

    rows written per table, and ?unattributed for a write whose target could not be parsed

    rowsWritten: number
    shapes?: Record<string, number>

    distinct statement shapes and their counts, capped at TALLY_SHAPE_LIMIT

    statements: number
    statementsByTable: Record<string, number>

    write STATEMENTS per table, which rows alone cannot substitute for.

    Rows answer "how expensive", statements answer "how many times". The router rebuild is the case that forced this: a rebuild is one DELETE plus a fixed number of parameter-budgeted INSERTs, so statements-per-table divided by that fixed shape reads the number of REBUILDS directly. Inferring it from rows instead means dividing a measured total by a subtrahend nobody measured -- the exact error this project keeps finding.

    Counted for every write statement including no-ops, unlike byTable, because a statement that wrote nothing still happened.