mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 13:01:00 +00:00
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:
1 parent
dbd9618d44
commit
a81dfaab3d
1 file changed
+3
-1
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user