Ravi Sir's Cards › AWS
Query vs Scan
This comparison card contrasts Query and Scan. Query is described as reads one partition key. Scan is described as reads the whole table. The card pairs Query with normal app reads, and Scan with rare exports and admin jobs.
Read card text
What this card says
Read style
Query
Reads one partition key.
Scan
Reads the whole table.
Key points
Fast and cheap.
Slow and costly.
Example
--key-condition-expression
Use when
Normal app reads.
Rare exports and admin jobs.