Introduction
Scan reads every item in a table. It is simple but can be slow. Use it only when you need to check all data or have no better way to find what you want.
You want to get all items from a small table quickly.
You need to find items but have no suitable key to query.
You want to check or count all items in the table.
You are testing or debugging and want to see all data.
You have a filter that cannot use indexes or keys.