Counting In DynamoDB
Tuesday, April 30, 2024
Does getting a count in DynamoDB return the total across the entire table, or just the total for the current page? While a brief search online didn’t give any conclusive result, it did show that it’s possible to get a count for a scan or a query without fetching the items themselves, which is a good thing (honestly, I was not expecting this to be possible). This is done by setting the select parameter to count: