MongoDB: How to query a time-series with incomplete data?
问题 I'm storing time series data in a mongoDB collection with one data point every 15min. But sometimes, due to bad conditions, some data points get lost. I have a dataset as follows: {"device_id": "ABC","temp": 12,"timestamp": 2020-01-04T17:48:09.000+00:00} {"device_id": "ABC","temp": 10,"timestamp": 2020-01-04T18:03:09.000+00:00} {"device_id": "ABC","temp": 14,"timestamp": 2020-01-04T18:18:09.000+00:00} missing frame missing frame {"device_id": "ABC","temp": 13,"timestamp": 2020-01-04T19:03:09