0
我試圖模型3列的 「簡單」 表:DynamoDB 「複合」 鍵索引結構
userId | topicId | views
表應能:
- 已經重複
userId
- 重複
topicId
- 強制執行
userId
和的唯一組合
換句話說,存在與userId
相關聯的許多topicId
「s和views
將是遞增的數。
我將如何創建我的索引,如果我需要做下面的查詢:
- 得到的記錄列表提供
userId
- 獲得和更新一個獨特的記錄提供
userId and topicId