分区键选择不当的 DynamoDB 在 GSI 上的读取是否会影响 table 的 read/write

Can DynamoDB reads on GSI with badly chosen partition key affect the read/write for the table

我有一个 DynamoDB table 有一个很好的分区键 (PK=uuid) 但有一个 GSI (PK=type, SK=created) 其中类型只有 6 个唯一值并且创建是纪元时间.

我的问题是,如果我开始使用此 GSI 进行大量读取,这会影响整个 table 的性能吗?我看到 table 和 GSI 的读取容量并未根据 this AWS docs 共享,但如果我们开始大量使用此 GSI,幕后会发生什么? Dynamodb 写入会受到影响吗?

全局二级索引具有单独的容量单元,以避免 table 本身的性能。

A global secondary index is stored in its own partition space away from the base table and scales separately from the base table.

你的 table 的表现只有在它自己的积分被耗尽时才会受到影响。全局二级索引位于其自己的分区 space 中,可以将其视为具有自己的边界。

此外,由于 DynamoDB 对 read (RCU) and write (WCU) 使用单独的积分,这 2 个操作永远不会对另一个操作产生性能影响。