问题
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:
- Create firebase backup
- Use BigQuery federated sources to query that backup directly from BigQuery (JSON is supported)
来源:https://stackoverflow.com/questions/36823794/analyze-firebase-data