如何使用Java API在DynamoDB中更改GSI的预配置吞吐量 [英] How to change provisioned throughput of GSI in DynamoDB using Java api

查看:78
本文介绍了如何使用Java API在DynamoDB中更改GSI的预配置吞吐量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用java DynamoDB api更改表的预配置吞吐量很容易:

It's easy to change provisioned throughput for table using java DynamoDB api like this:

AmazonDynamoDBClient.updateTable(tableName,new ProvisionedThroughput(read,write));

全局二级索引(GSI)具有独立于基本表的自身拨备值。有没有办法像使用表格一样使用java api管理它们?

Global secondary indices (GSIs) have their own provision values independent from the base table. Is there a way to manage them using java api like we do with tables?

推荐答案

您需要使用其他 updateTable 方法并传递您的实例 UpdateTableRequest

You'll need to use the other updateTable method and pass your instance of UpdateTableRequest.

添加 GlobalSecondaryIndexUpdate 并将其设置新的预配置吞吐量。

Add a GlobalSecondaryIndexUpdate to it and set the new provisioned throughput.

这篇关于如何使用Java API在DynamoDB中更改GSI的预配置吞吐量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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