我最近在 Fitbit 上开发一个应用程序。我正在考虑使用 MongoDB 或 HBase,因为它支持聚合并支持以键值格式处理数据。示例数据集:
{
"activities-heart": [
{
"customHeartRateZones": [],
"dateTime": "today",
"heartRateZones": [
{
"caloriesOut": 2.3246,
"max": 94,
"min": 30,
"minutes": 2,
"name": "Out of Range"
},
{
"caloriesOut": 0,
"max": 132,
"min": 94,
"minutes": 0,
"name": "Fat Burn"
},
{
"caloriesOut": 0,
"max": 160,
"min": 132,
"minutes": 0,
"name": "Cardio"
},
{
"caloriesOut": 0,
"max": 220,
"min": 160,
"minutes": 0,
"name": "Peak"
}
],
"value": "64.2"
}
],
"activities-heart-intraday": {
"dataset": [
{
"time": "00:00:00",
"value": 64
},
{
"time": "00:00:10",
"value": 63
},
{
"time": "00:00:20",
"value": 64
},
{
"time": "00:00:30",
"value": 65
},
{
"time": "00:00:45",
"value": 65
}
],
"datasetInterval": 1,
"datasetType": "second"
}
}
当我希望在我的应用程序中对这些数据进行分析时,存储传感器数据的数据库的理想选择是什么?谢谢!