Ravi Sir's Cards › AWS
Scan safely during cleanup
A Scan reads one page at a time. Follow LastEvaluatedKey even if filtering made the returned page empty. Count candidates before writes. In flag or delete mode use a condition to avoid changing a row that was refreshed after reading. complete=false means work remains. A large production job needs scoped queries or durable checkpoints rather than repeated full scans.
Read card text
What this card says
Read the cursor
A Scan reads one page at a time. Follow LastEvaluatedKey even if filtering made the returned page empty.
Preview then modify
Count candidates before writes. In flag or delete mode use a condition to avoid changing a row that was refreshed after reading.
Watch the budget
complete=false means work remains. A large production job needs scoped queries or durable checkpoints rather than repeated full scans.