compound key
A key built from two or more fields, such as tenant plus time bucket.
In more detail
Compound keys encode the query you need: one part keeps related data together, another spreads it or orders it. The order of the parts matters, because many stores sort and range-scan by the leading part.
Related terms
- partition key — The DynamoDB attribute whose value decides which storage partition an item lives in, and which every query must name.
- time bucket — A fixed window of time, such as an hour, used to group records in a key.
Taught in
- Partitioning, Sharding And Hot Keys — Scalable System Design & Distributed Architecture