1
votes

I have a dynamo table. It has primary key and sortkey. In dynamodb 1 partition can have max of 10GB of data. Can a single primary key be present in multiple partitions means single primary key have multiple sort keys which lead to more than 10GB and crosses partition boundary.

Is there any limitation on max size of single primary/hash key ?

1

1 Answers

0
votes

In short, there is no limitation on primary/sort key. If you have Local Secondary Index (LSI) defined, then the total sizes of all table and index items cannot exceed 10 GB.

In general, there is no practical limit on the number of distinct sort key values per partition key value.

The exception is for tables with local secondary indexes. With a local secondary index, there is a limit on item collection sizes: For every distinct partition key value, the total sizes of all table and index items cannot exceed 10 GB. This might constrain the number of sort keys per partition key value.

Sort Key Values