Working with Table Scans

The Scan API  which can be invoked using the scan CLI command . Scan will do a full table scan and return the items in 1MB chunks.

The Scan API is similar to the Query API except that since we want to scan the whole table and not just a single Item Collection, there is no Key Condition Expression for a Scan. However, you can specify a Filter Expression  which will reduce the size of the result set (even though it will not reduce the amount of capacity consumed).

Let us look at the data in the Reply table which has both a Partition Key and a Sort Key. Select the left menu bar Explore itemsConsole Menu Item Explorer You may need to click the hamburger menu icon to expand the left menu if its hidden. Console Menu Hamburger Icon

Once you enter the Explore Items you need to select the Reply table and then expand the Scan/Query items box.

Item Explorer Expand Tables

For example, we could find all the replies in the Reply that were posted by User A.

Item Explorer Scan Reply 1

You should see 3 Reply items posted by User A.