firebase-cli database:profile question

118 views
Skip to first unread message

Vincent Bergeron

unread,
Apr 9, 2017, 11:55:19 AM4/9/17
to Firebase Google Group
Hi!

One of my customer's bandwith is too big according to my expectations.

So I tried the firebase database:profile tool to see what's going on.

I got this report (example)

Downloaded Bytes
┌──────────────────────────────────────────────────────────┐
│ Path                                                                 │ Total         │ Count │ Average             │
├────────────────────────────────┼────────┼───────┼────────┤
│ /a_root_path/$wildcard                                       │ 31.72 MB  │ 193   │ 164.37 kB           │
├────────────────────────────────┼───────┼────┼────────────┤
│ /a_root_path/$wildcard/$wildcard                         │ 7.68 MB   │ 644   │ 11.92 kB            │
├────────────────────────────────┼───────┼────┼────────────┤
│ /a_root_path/$wildcard/$wildcard/$wildcard           │ 1.22 MB   │ 233   │ 5.24 kB             │
├────────────────────────────────┼────────┼────┼──────────┤


The $wildcard gets there according to this docs:
The path in your database tree where the operations occurred. If there are more than 25 child nodes, these are collapsed into a parent path and replaced with a $wildcard marker. You may see your database's root directory in the report, represented by a forward slash /.


Since almost everything is under a_root_path,  the $wildcard token hides what I want to know....

Is there a way to either disable the 25 child nodes $wildcard token or to tell to firebase database:profile to listen to a specific child?

Thanks

VB

Tyler Rockwood

unread,
Apr 9, 2017, 4:55:24 PM4/9/17
to Firebase Google Group
Vincent,

Currently there is not a way to do this in the default output, it's on our roadmap to be able to submit filters for certain locations in your database, but there are no timelines to share there. If you want to view every path you can use the --raw flag to get the individual operations that are going on. The raw flag will output newline delimited json for each operation in your database, you can see the schema of each of these operations here: https://firebase.google.com/docs/cli/database-profile

Hope this helps!

-Tyler

Tyler Rockwood

unread,
May 8, 2017, 6:51:53 PM5/8/17
to Firebase Google Group
Hi Vincent,

There is a PR for this feature here: https://github.com/firebase/firebase-tools/pull/329

-Tyler

On Sunday, April 9, 2017 at 8:55:19 AM UTC-7, Vincent Bergeron wrote:
Reply all
Reply to author
Forward
0 new messages