Ravi Sir's Cards › AWS
Query vs Scan
This comparison card contrasts Query and Scan. Query: One partition. Scan is described as whole table. The card pairs Query with normal app reads, and Scan with rare exports.
Read card text
What this card says
Reads
Query
One partition.
Scan
Whole table.
Key points
Cheap and fast.
Slow and costly.
Example
KeyConditionExpression
Use when
Normal app reads.
Rare exports.