使用本地二级索引设计表
您有一张 "Orders" 表,userId 为分区键,orderDate 为排序键。您需要按 userId 查询订单,但要按 orderStatus(pending、shipped、delivered)而不是 orderDate 进行排序。您正在考虑在 orderStatus 上添加本地二级索引(LSI)。
关于为该需求使用 LSI,以下哪项陈述是正确的?
本练习是课程的一部分
您有一张 "Orders" 表,userId 为分区键,orderDate 为排序键。您需要按 userId 查询订单,但要按 orderStatus(pending、shipped、delivered)而不是 orderDate 进行排序。您正在考虑在 orderStatus 上添加本地二级索引(LSI)。
关于为该需求使用 LSI,以下哪项陈述是正确的?
本练习是课程的一部分