Analyze Firebase data

两盒软妹~` 提交于 2020-07-21 06:29:05

问题


I have a mobile app that uses Firebase to store it's data. I am storing all user data, different business objects and relationships.

I am looking for a way to analyze my data. I want to execute queries and aggregations on the data, and to generate reports. The Firebase site mentioned using BigQuery from Google, but there seems to be no easy way to import data from Firebase to it.

What is the best way to achieve this? I know I can create daily backups, but after I have the raw JSON data how can I query it?

UPDATE 8/5:

For making things clear, here is sample JSON data from Firebase:

{
  "lambeosaurus": {
    "height" : 2.1,
    "length" : 12.5,
    "weight": 5000
  },
  "stegosaurus": {
    "height" : 4,
    "length" : 9,
    "weight" : 2500
  }
}

This JSON is not new-line delimited.


回答1:


  1. Create firebase backup
  2. Use BigQuery federated sources to query that backup directly from BigQuery (JSON is supported)


来源:https://stackoverflow.com/questions/36823794/analyze-firebase-data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!