【发布时间】:2022-01-20 05:39:28
【问题描述】:
我有以下表格结构。我的partitionKey 目前不是唯一的,但我的sortKey 是唯一的。
我还有一个Global Secondary Index,其中我的列Column Units 是唯一的partitionKey。
将删除
GSI并将partitionKey改为Column Units,这是独一无二的,这样可以加快我的查询速度并减少延迟。
原因,我想问的是我偶尔会看到DDB 调用此表的次数激增。
Current Table Structure
GSI - Column Units
| Column Zone (partitionKey) | Column Units (sortKey) |
|---|---|
| A | unique-1 |
| A | unique-2 |
| B | unique-3 |
【问题讨论】:
-
您如何请求数据,即访问模式是什么?
标签: amazon-web-services dynamodb-queries amazon-dynamodb