DynamoDB query() versus getItem() for single-item retrieval based on the index

后端 未结 4 671
闹比i
闹比i 2021-02-06 20:28

If I\'m retrieving a single item from my table based on the indexed hash key, is there a performance difference between query() or getItem()?

4条回答
  •  天命终不由人
    2021-02-06 20:54

    As suggested by aws employee in one of the discussion, I quote:

    The latency of GetItem vs Query with limit=1 will be equivalent.

    AWS discussion link

提交回复
热议问题