Member Junction
    Preparing search index...

    Interface CacheRowDeltaPayload

    Compact row-level mutation payload broadcast over pub/sub when LocalCacheManager.ApplyRowChanges maintains an existing cached RunView slot in place.

    The backing storage key (e.g. Redis) still holds the full authoritative CachedRunViewData snapshot for cold-boot and cache-miss reads, while already-warm BaseEngine peers apply only the mutated rows in $O(\Delta)$ instead of transferring and re-materializing all $N$ rows.

    interface CacheRowDeltaPayload {
        deletedPrimaryKeys: Record<string, CachePrimaryKeyValue>[];
        maxUpdatedAt: string;
        primaryKeyFields: string[];
        rowCount: number;
        schemaHash?: string;
        totalRowCount: number;
        upsertedRows: Record<string, CacheRowValue>[];
    }
    Index

    Properties

    deletedPrimaryKeys: Record<string, CachePrimaryKeyValue>[]

    Primary-key field-value maps for deleted records, e.g. [{ ID: '...' }].

    maxUpdatedAt: string

    Post-mutation maxUpdatedAt ISO timestamp of the cached slot.

    primaryKeyFields: string[]

    Ordered primary-key column names for this entity (supports single and composite PKs).

    rowCount: number

    Authoritative post-mutation row count of the cached slot (used by peers to detect drift or missed deltas).

    schemaHash?: string

    Entity schema hash (CachedRunViewData.schemaHash), validated by peers before applying the delta.

    totalRowCount: number

    Authoritative post-mutation TotalRowCount of the cached slot.

    upsertedRows: Record<string, CacheRowValue>[]

    Full row objects for created or updated records, shaped identically to the cached slot rows.