Let's say we have a composite key : name (partition key) and timestamp (sort key)
If I query name with the latest timestamp, would I bear the cost of all entries inside the partition, or only the latest entry?
Let's say we have a composite key : name (partition key) and timestamp (sort key)
If I query name with the latest timestamp, would I bear the cost of all entries inside the partition, or only the latest entry?
Copyright © 2021 Jogjafile Inc.
If you do a
QuerywithLimit=1andScanIndexForward=Falsethen you will get the latest value and only pay to read 1 item.Likewise, if you know the
nameandtimestampyou can do aGetItemand only pay to read 1 item.