You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TransactWriteItems leaves index write units out of ConsumedCapacity #866
With ReturnConsumedCapacity set to INDEXES, Amazon DynamoDB reports the units a transaction writes to each global secondary index, and counts them in the total. ExtendDB reports the table alone.
Measured in us-east-1 on 2026-11-05, on a table with one global secondary index, gsi:
Request
DynamoDB
ExtendDB
TransactWriteItems, one Update that changes the gsi key of an item
ExecuteTransaction on #411 gives the same numbers as TransactWriteItems on both sides, because it runs through the same code.
Where
crates/engine/src/transact_write_items.rs, at the note that the per-index breakdown for transactions is deferred: the engine has no old or new item for an Update or Delete member, so it cannot tell which index entries a write changes. The storage layer's transact_write_items returns neither on any of the four backends.
What to change
Have transact_write_items on SQLite, PostgreSQL, MongoDB and Cassandra return the old and the new item of each member, or the index entries each member wrote.
Rate each member's index writes as the single-item writes do, and add them to the index entries and to the total.
Activity