If I'm not mistaken, to perform a count of items, in DynamoDB we have to use the query action and provide Select: 'COUNT'
as parameter. Let's consider that I'd like to count the number of items that have a certain partition key. Given that we have to use the query
action, does that mean the following?:
- Even though we're returning only the count, the consumed read capacity units will correspond to the size of all the items with that partition key.
- If the size of the items that have the given partition key exceeds 1MB, the count will be partial, will only consider the items up to 1MB and the operation will be paginated.