LoginSignup
3
1

More than 5 years have passed since last update.

DynamoDBに大量データをputしたときのエラーについて

Posted at

概要

業務で数千件のデータを1件ずつputし続けたら、CloudWatchにて下記エラー。

The level of configured provisioned throughput for one or more global secondary indexes of the table was exceeded. 
Consider increasing your provisioning level for the under-provisioned global secondary indexes with the UpdateTable API

ハッシュキー以外でqueryを実行したいため、このテーブルはGSI(グローバルセカンダリインデックス)を貼っている。
どうやらこのGSIのキャパシティが超過したらしい。

いまいちわからないのが、実行している処理ではqueryしておらずGSIの参照は実施していないはず。
データを追加するときに、GSIを貼りなおすからキャパシティが超過している?

こちらによると、サフィックスを付けることで解決できるらしい。

ただ今回は要件上最大データ数が、数千件なのでGSIのプロビジョニングの書き込みキャパシティを、少し上げて対応。

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1