EDIT:
I was actually wrong. I was querying a table when I wanted to query an index that explains my error. Vikdor's solution is valid though.
ORIGINAL:
I have a table with a hash key scheme in DynamoDB. I need to get all the elements associated with a specific hash key, but it seems that a range key condition is required. My problem is that I want the key "EVERY range", but there is no alternative. Right now, my range key is a string, and the only way I could do this is to request all range keys greater than or equal to the smallest ascii characters that I can use, as the documentation says that it is sorted based on characters ascii character.
I looked at the scan, but it seems to just read the entire table, which is NOT an option.
Is there a better way to request all hash key values, or can someone confirm that using a method with the ascii character will work?
source
share