@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.
|
@@ -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
|
|
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);
|