mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
The summary's all-time aggregate grouped every live reading of the account by type: one index entry per reading, millions on an account with a watch, two to four seconds whenever they were not in memory and the slowest read of the request on every cache miss. The count now sums the DAY buckets that already hold a per-day count of every source, counts live only the readings before the fold window and any type not folded yet, and takes lastSeenAt from the newest reading the latest-reading read already returns. Parity with the live count is pinned against a real Postgres.