Optimized data aggregation.

- All aggregation use only the raw data as input.
- Only produce aggregated data that will show in a chart (less work after clearing the sensor_data_aggr table).
- Adding version handling of data aggregation to secure that the peer has up to date data.
- New db version: 6 - Adding sensor.aggr_version(int, default=1), will clear sensor_data_aggr for local sensors


Former-commit-id: cbf5a890a5058791b443e975048db13f6ac4c9fe
This commit is contained in:
Daniel Collin 2016-02-02 14:21:56 +01:00
parent a6f8cf872a
commit ea5c991824
10 changed files with 121 additions and 136 deletions

Binary file not shown.