I'm using a python script to access a dynamodb database in AWS.
I have a table with a hash key and sort key.
For a given hash key, I want to find the item with the largest sort key that is less than a certain value. How can I do that?
Alternatively, is there a way to find the previous item from a given key?
I am not trying to find the item with the largest attribute value (an expensive task in dynamodb), I want the largest key value.