Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cards › AWS

AWS Cloud

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.

Query vs Scan: Reads one partition key.; Reads the whole table.
Query vs Scan · Download PNG
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.

See all AWS revision cards