multimeric / AmplifyCountDirective

Count the number of items in your DynamoDB tables using Amplify
12 stars 1 forks source link

Add an efficient count for the entire unfiltered table #5

Open multimeric opened 2 years ago

multimeric commented 2 years ago

We can obtain a rough item count using the describeTable API call on Dynamo. This can be used to very quickly return the number of items in the table when no filters are needed. This could possibly be made even faster by doing this using VTL and not using Lambda at all.