Dynamo DB 删除所有分区键条目,而不考虑排序键值 [英] Dynamo DB Delete All Partition Key Entries Regardless of Sort Key Values

查看:19
本文介绍了Dynamo DB 删除所有分区键条目,而不考虑排序键值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用复合主键的 Dynamo 表.组合键由分区键和排序键组成.

I have a Dynamo table which uses a composite primary key. The composite key is made up of a partition key and a sort key.

有没有办法删除与分区键匹配的所有条目而不管排序键?

Is there a way to delete all entries matching the partition key regardless of the sort key?

我知道我可以:

1)Query for entries where partion key='known_id' and sort key = "all possible values"
2)Delete each returned entry

可以不先查询直接删除吗?

推荐答案

这不受支持.您首先需要通过分区键查询匹配的记录.

This is not supported. You will first need to query for matching records by the partition key.

这篇关于Dynamo DB 删除所有分区键条目,而不考虑排序键值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆