0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Cloud Datastore を利用する際に気をつけること

Last updated at Posted at 2018-11-26

気をつけるポイント

Datastoreを利用する上で見逃しがちだが重要なポイントがある。
実際に運用上で発生した問題を下記にまとめた。

エンティティの最大サイズ

1エンティティに登録できる最大サイズは「1,048,572 バイト」。
このサイズを超えるデータを登録しようとすると、エラーとなり書き込みができなくなる。

commit制限

CloudDatastoreAPIで、Commitオペレーションに渡せるエンティティの最大数は「500件」である。
つまり、書き込みや更新、削除対象のエンティティが一度に500件分処理しようとするとエラーとなり処理ができなくなる。

その他

それ以外にも公式情報で様々な制限が記載されている。
利用する際は、制限を正確に把握した上で長期運用にも耐えうるデータ設計を検討することを薦めます。

0
0
1

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?