我需要一种按时间戳排序项目的方法,因此我正在考虑使用通用哈希键和 unix 时间戳作为范围键。
根据常见问题解答:
When storing data, Amazon DynamoDB divides a table into multiple partitions and
distributes the data based on the hash key element of the primary key. The provisioned
throughput associated with a table is also divided among the partitions; each
partition's throughput is managed independently based on the quota allotted to it.
There is no sharing of provisioned throughput across partitions.
由于我使用的是公共散列键,因此不会有不均匀的负载分布 - 因为所有负载都将进入单个分区。
所以当我提供100 write
给这个分区时,所有的容量都将被使用,那么我认为这是一件好事,因为容量没有被浪费?