Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法使用全局二级索引从 DynamoDB 中的表执行批量加载?
batchLoad API只接受 HashKeys,而queryPage API只允许您传入单个密钥。
BatchLoad 在幕后使用 BatchGetItem。BatchGetItem 只能从基表中读取,不能从索引(LSI、GSI)中读取。因此,您需要在 GSI 上并行运行多个查询操作才能达到类似的效果。