1

I am creating a dynamoDB table. I am using an custromerId as partition key and versionNumber as sort key. suppose there are 1000 versions for any particular customerId. for my use-case I always want to find out last version of any customerId. will there be any difference in performance when i want first versionNumber and when i want last versionNumber or both will take same time.

Akash Patel
  • 189
  • 1
  • 5
  • 13

1 Answers1

1

No, actually we'll have a parameter ScanIndexForward (True/False). So based on this it starts reading the dynamoDB in ascending or the descending order.

Sai Sreenivas
  • 1,690
  • 1
  • 7
  • 16