I am using amazon dynamodb boto query interface for python. I have the following questions
For me it seems that the the querying is using the assumption that the user knows the primary keys beforehand.
Thanks!
Query
requires that you specify the hash key.
For the case you are trying to achieve, you need to evaluate every item in the table which requires you to use a Scan
.
It sounds to me like you have 3 requirements:
These 3 requirements map well into DynamoDB:
Scan
API:
The Scan operation returns one or more items and item attributes by accessing every item in a table or a secondary index...
Limit request parameter :
The maximum number of items to evaluate (not necessarily the number of matching items)...
ProjectionExpression request parameter:
A string that identifies one or more attributes to retrieve from the specified table or index...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With