4 ms·
DynamoDB runs the partition key through a hash function, so sequential values end up being evenly distributed across partitions.
by luhn 5y ago
DynamoDB runs the partition key through a hash function, so sequential values end up being evenly distributed across partitions.
- stickfigure 5y agoIf so, how does it iterate in key order? I should clarify - the problem with Firestore is the index tablets. The indexes inherently need to be inorder or you can't perform ordered queries.
- luhn 5y agoIt can't. You can only perform range queries and the like on "sort keys." All sort keys are on the same partition, so has limits on storage size and throughput. Partitioning is very explicit in DynamoDB, for better or for worse. Harder to shoot yourself in the foot, but also limits what you can do.