1 回答
- 最新
- 投票最多
- 评论最多
0
Hi mszniber,
"For any item in a table, DynamoDB will only write a corresponding entry to a global secondary index if the index key value is present in the item. For global secondary indexes, this is the index partition key and its sort key (if present). If the index key value(s) do not appear in every table item, the index is said to be sparse."
That is to say, if the item does not have the attribute which you choose to be the partition key of your GSI, it will not show in your GSI table.
Please refer to the following link regarding this for more details:
http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GuidelinesForGSI.html#GuidelinesForGSI.SparseIndexes
已回答 7 年前
相关内容
- AWS 官方已更新 3 年前
- AWS 官方已更新 1 年前