[英]Correct Structure for Multiple Non-hierarchical Keys in DynamoDB
我正在尋找有關如何在 DynamoDB 中查找 model 表的一些建議,我需要在其中查找幾個不同的鍵。 object 看起來像這樣:
{
memberId: string;
cognitoUserId: string;
cognitoTmpPassword: string;
email: string;
britecoreGroupId: string;
policyNumbers: string[];
}
我們需要能夠針對不同的用例通過 memberId、cognitoUserId 或 email 執行查找。 為此構建表格的最佳方法是什么?
謝謝!
啊,我認為二級索引是我需要的。 都好。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.