concept
Query, Scan, indexes and pagination
Query narrows a collection by key; Scan evaluates broadly. A GSI enables alternate keys but only eventual reads. Continue with ExclusiveStartKey until the continuation key is empty.
Formal Syntax & Structure
aws syntaxaws
Query(PK = value, optional SK condition)Working Example
Example Snippetaws
PK = USER#12; begins_with(SK, CART#) (conceptual)