Understanding that there are two types of queries depending on whether or not you specify secondary indexes, why does the Scan query even exist? In what scenario would a user running a query have any desire for the query to only hit part of their dynamoDB table??
I don't understand the logic at all of how this is the default.
If I say listUsers({
filter: {
firstName: "Chris"
},
limit: 200
})
why in the world would I ever want my query to just sift there the first 200 users if I have 200,000,000 users. This to me just seems so so worthless and it overcomplicates and confuses the users. It took me a month before I realized the filter expression isn't actually what I'm querying but just filtering the first 200 users.
In Firebase, if I query for something, I expect it to check everything and return the results.
Has anyone else every needed just a basic scan query instead of having to specify secondaryIndexes?