FirebaseのRealtime Databaseはストレージ量制限があります。
ダウンロードしたバイト数でも制限があります。
従量課金制だとその限りではないですが。
そのためRealtime DatabaseではDownloaded Bytesを意識しないといけなくなります。
確認方法は2つあります。
1つ目はFirebase consoleの「Realtime Database」のダウンロードタブで確認できます。
ただしこの計測は15分に一度修正なので瞬時に確認できません。
2つ目はFirebase CLIのfirebase database:profile
を使用する方法です。
これはコマンドを実行した後に実際にRealtime Databaseをダウンロード(表示)して確認することができます。
firebase database:profile
を実行後にコンソールでは
0 operations recorded. Press [enter] to stop
と表示されます。
その後Realtime Databaseを表示してみます。
4 operations recorded. Press [enter] to stop
とレコード数が変更されているかと思います。
そしたらEnterを押して見ると取得結果が表示されます。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
$ firebase database:profile ⠏ 4 operations recorded. Press [enter] to stop Report operations collected over 730 ms. Speed Report NOTE: Speeds are reported at millisecond resolution and are not the latencies that clients will see. Read Speed ┌─────────────────────────────────────┬───────┬─────────┬───────────────────┐ │ Path │ Count │ Average │ Permission Denied │ ├─────────────────────────────────────┼───────┼─────────┼───────────────────┤ │ /users │ 1 │ 1 ms │ 0 │ ├─────────────────────────────────────┼───────┼─────────┼───────────────────┤ │ /users/test1 │ 1 │ 0 ms │ 0 │ ├─────────────────────────────────────┼───────┼─────────┼───────────────────┤ │ / │ 2 │ 0 ms │ 0 │ └─────────────────────────────────────┴───────┴─────────┴───────────────────┘ Write Speed ┌──────┬───────┬─────────┬───────────────────┐ │ Path │ Count │ Average │ Permission Denied │ └──────┴───────┴─────────┴───────────────────┘ Broadcast Speed ┌──────┬───────┬─────────┐ │ Path │ Count │ Average │ └──────┴───────┴─────────┘ Bandwidth Report NOTE: Bandwidth is an estimate and not a valid measure of your bandwidth bill. Downloaded Bytes ┌─────────────────────────────────────┬───────┬───────┬─────────┐ │ Path │ Total │ Count │ Average │ ├─────────────────────────────────────┼───────┼───────┼─────────┤ │ / │ 196 B │ 2 │ 98 B │ ├─────────────────────────────────────┼───────┼───────┼─────────┤ │ /users/test1 │ 0 B │ 1 │ 0 B │ ├─────────────────────────────────────┼───────┼───────┼─────────┤ │ /users │ 0 B │ 1 │ 0 B │ └─────────────────────────────────────┴───────┴───────┴─────────┘ Uploaded Bytes ┌──────┬───────┬───────┬─────────┐ │ Path │ Total │ Count │ Average │ └──────┴───────┴───────┴─────────┘ Unindexed Queries ┌──────┬───────┬───────┐ │ Path │ Index │ Count │ └──────┴───────┴───────┘ |
といった結果が表示されます。
スポンサードリンク