在我的DynamoDB表中,有HashKey = ID和GSI = Type。我需要获取特定类型(GSI)的所有hashKeys (ID)。
在这种情况下,获取给定类型的所有in的有效方法是什么?我的DynamoDB表不会很大。
发布于 2019-08-21 04:15:45
查询该类型的索引。https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GSI.html#GSI.Querying
如果您希望只有不同的值,那么您必须在客户端对它们进行分组:Distinct attribute value from Global Secondary Index in DynamoDB
发布于 2019-11-23 15:31:32
您只需在GSI中查询您感兴趣的“类型”,并从all key field from the table are automatically projected into the GSI开始检索您感兴趣的in
https://stackoverflow.com/questions/57580740
复制相似问题