How can I get the total number of items in a DynamoDB table?

前端 未结 8 2024
南旧
南旧 2020-12-05 23:33

I want to know how many items are in my dynamodb table. From the API guide, one way to do it is using a scan as follows:



        
8条回答
  •  自闭症患者
    2020-12-06 00:05

    An approximate item count value (supposedly updated every six hours) is available in the AWS console for DynamoDB. Just select the table and look under the Details tab, last entry is Item Count. If this works for you, then you can avoid consuming your table throughput to do the count.

提交回复
热议问题