mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
A sample the app wrote before the origin marker existed still carries the HealthLog row id as HKExternalUUID. A hit on one of the account's rows of the same kind now leaves it out exactly, for Withings and import mirrors as well as manual ones; either id of a blood pressure pair covers both halves, since the app stamps both samples of a reading with one id. The manual-mirror lookup read one OR clause per row on every batch, even for an account without a single MANUAL row. The types that hold MANUAL rows are now read once per import; a batch asks nothing for any other type, and one time window per type for those. Cycle samples carry the marker too and are now left out like the rest, and a sample the export repeats (a correlation's records also stand on their own) is counted once.