DynamoDB sort key
An optional second part of a DynamoDB key that orders items sharing a partition key, so you can read a range of them.
In more detail
With a customer as partition key and order time as sort key, one query returns that customer’s orders in date order. Sort keys turn one-to-many questions into cheap range reads.
Related terms
- partition key — The DynamoDB attribute whose value decides which storage partition an item lives in, and which every query must name.
- Amazon DynamoDB — Amazon's fully managed key-value and document database, which stores items in tables without any servers for you to run.
- query — A request to a database for data, written in SQL, that returns a set of rows as its answer.
Taught in
- NoSQL and DynamoDB — Cloud Infrastructure & Hyperscaler Architecture