Use Query instead of Scan Dont…Ever…Use…Scan…in DynamoDB. Seriusly, dont!
A scan is the most brutal operation that returns all data, even if you use Filter. The logic behind Scan is that scans the whole table AND THEN applies the filter. Not only it’s slow, but your consumed capacity will always be high meaning, you will not like what you see on AWS Bill.
Well, why is there a Scan operation in SDK if it’s slow and costly?
My wife and I are always checking the daily food menu on the kindergarten website to inform our child what she is going to eat today. Let’s automate it!