DynamoDB Hash And Range Primary Key

DynamoDB primary key is made of a combination of

  • Hash attribute
  • Range attribute

For example, we can have ForumName and Subject as primary key. This means every row's primary key is the combination of hash and range key.

Now you can make query with >, <, =, >=, ... For example:
Get me all rows from the table with Hash key X and range greater than Y