@golemio/microclimate 1.1.2-dev.788237500 → 1.1.3-dev.791163543

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,5 @@
1
1
  DROP VIEW IF EXISTS v_sensor_points;
2
2
  DROP VIEW IF EXISTS v_sensor_measurements;
3
+
4
+ DROP INDEX measured_at_idx;
5
+ DROP INDEX sensor_id_idx;
@@ -161,4 +161,7 @@ FROM measurements
161
161
  JOIN points_heights
162
162
  ON points_heights.sensor_id = measurements.sensor_id
163
163
  AND points_heights.measure = measurements.measure
164
- ORDER BY point_id ASC, measured_at DESC;
164
+ ORDER BY measured_at DESC, point_id ASC;
165
+
166
+ CREATE INDEX measured_at_idx ON measurements (measured_at DESC);
167
+ CREATE INDEX sensor_id_idx ON measurements (sensor_id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golemio/microclimate",
3
- "version": "1.1.2-dev.788237500",
3
+ "version": "1.1.3-dev.791163543",
4
4
  "description": "Golemio Microclimate Module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",