使用 Local Secondary Index 規劃資料表
你有一個「Orders」資料表,userId 為分割區鍵(partition key),orderDate 為排序鍵(sort key)。你需要依 userId 查詢訂單,並改為依 orderStatus(pending、shipped、delivered)排序,而不是依 orderDate。你正考慮在 orderStatus 上新增一個 Local Secondary Index(LSI)。
針對這個需求,哪一個敘述是正確的?
本練習屬於課程
