I want to setup dynamodb in a way that I can query for events that fall in X radius using geohashes and then sort it by the startDateTime.
The problem with BatchGetItem is that I can query multiple partition keys (geohash) at same time but cannot sort them, unless I have misunderstood the limitations of BatchGetItem.
Eg. I am standing in the top left/right corner of the geohash (abcde) and want to search for the events that falls under 10KM radius which would require querying multiple partition keys (abcde,abcdx,abcdy) and would like to sort them all by the startDateTime which is the sort/range key.
Global Secondary Index: Partition key - Geohash Sort key - StartDateTime
App stack: nodejs, dynamodb
Tried to make use of dynamodb-geo library but cannot understand how would sorting work even if I use that.