はじめに Firebase#2 の9日目の記事となります。 投稿が1日遅れてしまいました。。。 皆さんは、Firebase の Firestore を触ったことがあるでしょうか? 筆者もそうですが、RDBから入ったWebエンジニアにとって、NoSQLデータベースである Firestore は、RDBとはまったく違うので、最初は慣れが必要です。 今回は、Firestore のトランザクション処理、バッチ処理について、具体的なユースケースを交えて、どのように使うのかを書いていきます。 Firestore に登場する基本的な概念 RDBでは、基本的な概念として、テーブルがあり、カラム、レコードがありますが、Firestore にも以下のような基本的な概念が登場します。 まずこれらを知らないと Firestore のバッチ処理、トランザクション処理は、使いこなせません。 こちらの記事が、とてもわか