I was reading the documentation on Scan and it prefaces with:
The Scan operation returns one or more items and item attributes by accessing every item in a table or a secondary index.1
It made me wonder, under what circumstances would scanning a secondary index return a different set of records that the plain table would return?
Scan does not support KeyConditionExpression, only FilterExpression - which basically happens after the data has been retrieved.
So what would be the implication of scanning a GSI vs the table?