Ravi Sir's Cards › AWS
What it reads
This comparison card contrasts What it reads. Query: Items for one partition key (optional sort range). Scan is described as potentially the whole table. The card pairs Query with default for apps, and Scan with tiny labs or rare jobs only.
Read card text
What this card says
What it reads
Query
Items for one partition key (optional sort range).
Scan
Potentially the whole table.
Key points
Cheap when keyed well.
Pay for items examined.
Example
List notes for userId=7.
Use when
Default for apps.
Tiny labs or rare jobs only.