
Limit Child Nodes
Made by Firebase
指定した Realtime Database パスで、ノードの数を指定した最大数までに制限します。
この拡張機能の動作
Use this extension to control the maximum number of nodes stored in a Firebase Realtime Database path.
If the number of nodes in your specified Realtime Database path exceeds the specified max count, this extension deletes the oldest nodes first until there are the max count number of nodes remaining.
Additional setup
Before installing this extension, make sure that you've set up a Realtime Database instance in your Firebase project.
Billing
To install an extension, your project must be on the Blaze (pay as you go) plan
- You will be charged a small amount (typically around $0.01/month) for the Firebase resources required by this extension (even if it is not used).
- This extension uses other Firebase and Google Cloud Platform services, which have associated charges if you exceed the service’s free tier:
- Cloud Functions (Node.js 10+ runtime. See FAQs)
- Firebase Realtime Database
この拡張機能をインストールする方法
Firebase CLI の使用
拡張機能のインストールと管理は、Firebase CLI でも行えます。
ステップ 1: 以下の npm コマンドを実行して、CLI をインストールするか、最新バージョンの CLI に更新します。
npm install -g firebase-tools正常に機能しない場合は、Firebase CLI リファレンスを確認するか、npm のアクセス権を変更してください。
ステップ 2: 以下のコマンドを実行して、この拡張機能をインストールします。
firebase ext:install rtdb-limit-child-nodes --project=projectId_or_alias