aws / aws/aws-cli

DynamoDB Consumed Capacity is incorrect when CLI makes multiple requests

Open
#2,958 10 comments 1 reaction 0 assignees View on GitHub
dynamodb feature-request p3 paginator
Dominant language
Python
Stars
17.3k
Forks
4.6k
Avg merge
1d 2h
Merged PRs (30d)
13

Description

Hi!

We've noticed that when we perform a ddb count query from the CLI and have it return consumed capacity, the CLI is internally making multiple requests and aggregating the counts across queries. However, it's not also aggregating the consumed capacity. This leads to some odd results like counting 40,000 4kb records and only using 126.5 capacity units.

Looking into it a bit more, it looks like [this](https://github.com/boto/botocore/blob/develop/botocore/data/dynamodb/2012-08-10/paginators-1.json) is where the issue is (not assuming its as simple as removing ConsumedCapacity from non-aggregate keys =D).

cli version: 1.11.160

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.