Ravi Sir's Cards › AWS
Why can Scan cost more than Query?
This interview card answers: Why can Scan cost more than Query? You pay for items examined, not only items returned. Filters run after read, so they do not save RCU the way keys do. 10 GB table Scan to find 3 rows still reads ~10 GB.
Read card text
What this card says
What it is
You pay for items examined, not only items returned.
Why it matters
Filters run after read, so they do not save RCU the way keys do.
How / example
10 GB table Scan to find 3 rows still reads ~10 GB.