perf: skip raw freshness count scan
This commit is contained in:
@@ -319,7 +319,7 @@ def build_check_specs(
|
||||
min_stat: int,
|
||||
max_raw_age_minutes: float | None = None,
|
||||
) -> list[CheckSpec]:
|
||||
raw_params = {"limit": 1, "orderBy": "receivedAt"}
|
||||
raw_params = {"limit": 1, "orderBy": "receivedAt", "includeTotal": "false"}
|
||||
gb32960_history_params = {"protocol": "GB32960", "dateFrom": date_from, "dateTo": date_to, "limit": 1}
|
||||
jt808_history_params = {"protocol": "JT808", "dateFrom": date_from, "dateTo": date_to, "limit": 1}
|
||||
yutong_mqtt_history_params = {"protocol": "YUTONG_MQTT", "dateFrom": date_from, "dateTo": date_to, "limit": 1}
|
||||
|
||||
@@ -118,6 +118,7 @@ class GoNativeProdSmokeTest(unittest.TestCase):
|
||||
self.assertTrue(raw_specs)
|
||||
for spec in raw_specs:
|
||||
self.assertEqual(spec.params.get("orderBy"), "receivedAt")
|
||||
self.assertEqual(spec.params.get("includeTotal"), "false")
|
||||
self.assertNotIn("dateFrom", spec.params)
|
||||
self.assertNotIn("dateTo", spec.params)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user