DynamoDb 是否允许索引中有重复的 sortKey

Does DynamoDb allows duplicate sortKey in Index

DynamoDb 是否允许全局二级索引和本地二级索引中存在重复的 sortKey。

我有一个table,带有partitionkey和sortKey,想介绍GSI和LSI的sortKey属性不同,这个属性可以重复吗?

是的...

GSI

In a DynamoDB table, each key value must be unique. However, the key values in a global secondary index do not need to be unique.

LSI

In a DynamoDB table, the combined partition key value and sort key value for each item must be unique. However, in a local secondary index, the sort key value does not need to be unique for a given partition key value.