mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
Every night's replace-by-window clean-up carried every fresh segment id of the fetch. On a first sync that reads years of sleep that is one query per night with tens of thousands of bound values, over Postgres's limit, and the process spent minutes building them before each one failed. The sweep can only reach rows inside the window, so each window now protects the fresh rows inside it, from whichever session reported them. Refs #1195