查询 DynamoDB 所消耗的 RCU 数量是否存在?
Is there a find number of RCUs consumed by a query to DynamoDB?
我在 DynamoDB 中有一个 table。
我的服务有 2 个域对象映射到 table。
Table 看起来像这样,
id, name, title, attributemap
域对象是这样的,
内容 { id, name, title }
ContentAttribute { id, attributeMap }
每个域对象都有一个 dao。
我的问题是,当我使用 ContentAttribute dao 进行获取时,dynamoDB 是获取整行,还是只获取与 ContentAttribute 域对象对应的字段?
有没有办法找出一个这样的查询消耗的 RCU 数量?
DynamoDB 上的几乎每个 read/write 操作都允许您请求它也 return 消耗的容量 docs。
例如,在 GetItem
上向请求添加 ReturnConsumedCapacity: TOTAL
将 return 一个 ConsumedCapacity 对象,详细说明该查询单独使用的容量。
不过,要回答您的具体问题,无论您向 return (more detail here):
询问什么属性,当您从 Dynamo 获得时,您总是会消耗完整的项目
For any operation that returns items, you can request a subset of attributes to retrieve; however, doing so has no impact on the item size calculations.
我在 DynamoDB 中有一个 table。 我的服务有 2 个域对象映射到 table。
Table 看起来像这样, id, name, title, attributemap
域对象是这样的, 内容 { id, name, title } ContentAttribute { id, attributeMap }
每个域对象都有一个 dao。
我的问题是,当我使用 ContentAttribute dao 进行获取时,dynamoDB 是获取整行,还是只获取与 ContentAttribute 域对象对应的字段?
有没有办法找出一个这样的查询消耗的 RCU 数量?
DynamoDB 上的几乎每个 read/write 操作都允许您请求它也 return 消耗的容量 docs。
例如,在 GetItem
上向请求添加 ReturnConsumedCapacity: TOTAL
将 return 一个 ConsumedCapacity 对象,详细说明该查询单独使用的容量。
不过,要回答您的具体问题,无论您向 return (more detail here):
询问什么属性,当您从 Dynamo 获得时,您总是会消耗完整的项目For any operation that returns items, you can request a subset of attributes to retrieve; however, doing so has no impact on the item size calculations.