perf(day): leave pulse to the resting heart rate in the extremes

A pulse day value is a mean over thousands of background samples, and
comparing it over two years scanned every one of them: a recent day on a
dense account took about 300 ms, two thirds of it here. Resting heart rate
stays among the compared vitals.
This commit is contained in:
Marc-André Bombeck committed 2026-10-08 14:40:37 +02:00
1 parent dbd9618d44
commit a81dfaab3d
1 file changed
+3 -1
+3 -1
View File
@@ -21,6 +21,9 @@
*
* Only core types are compared for extremes: the vitals the dashboard is
* built around. A watch's background figures would mark a day every week.
* Pulse is left to the resting heart rate: its day value is a mean over
* thousands of background samples, which says little as an extreme and
* costs a scan of every one of them over two years.
*/
import type { MeasurementType } from "@/generated/prisma/enums";
@@ -35,7 +38,6 @@ export const NOTABLE_EXTREME_TYPES: readonly MeasurementType[] = [
"WEIGHT",
"BLOOD_PRESSURE_SYS",
"BLOOD_PRESSURE_DIA",
"PULSE",
"RESTING_HEART_RATE",
"BLOOD_GLUCOSE",
"HEART_RATE_VARIABILITY",