1
我有2個LSI在我的表與主排序關鍵字與多個本地二級索引Dynamodb查詢
ORG-ID的主分區鍵 - 主分區鍵
ClientID-主排序關鍵字
性別 - LSI
科 - LSI
我有查表一個LSI沒有的問題,而是如何提2 LSI在表模式。
var params = {
TableName:"MyTable",
IndexNames: ['ClientID-Gender-index','ClientID-Section-index'],
KeyConditionExpression : '#Key1 = :Value1 and #Key2=:Value2 and #Key3=:Value3',
ExpressionAttributeNames:{
"#Key1":"Org-ID",
"#Key2":"Gender",
"#Key3":"Section"
},
ExpressionAttributeValues : {
':Value1' :"Microsoft",
':Value2':"Male",
':Value3':"Cloud Computing"
}};
誰能解決這個問題INDEXNAME(3號線)或KeyConditionExpression(4號線),我不知道這件事。
問題
條件可以是長度爲1或2的僅