Dynamodb 筆記 -4- 概念速記
primary key
partition key 或 partition key + range key
訂 primary key 的欄位只能是 N, S, B
- N 數字
- S 字串
- B binary
attribute – 欄位
- N 數字
- S 字串
- B binary
- L list – 就是 list/ array
- M map – 就是 key-value pair 的 dictionary/object
secondary index
可以另外組合 index
- local secondary index – partition key 同 primary, range key不同
- global secondary index – partition key 不同於 primary (WCU, RCU 獨立計算)
scan 跟 query
- scan 就是全表掃描,先掃出來再篩選
- query 則是下好條件,只篩出要的
Leave a Reply