Bugfix: The punches import keeps its speed and memory
Description
The punches stage of the Horilla import slowed down with every batch and its process grew to several
gigabytes: it kept everything it had loaded, so each flush checked all earlier punches, and the day of every punch was
recalculated for itself. The stage now forgets what a batch loaded once the batch is committed. Imported punches (origin
migration) no longer trigger a recalculation of their day; the import recalculates the days it touched once per
employee and run of days after each batch, also for a punch that was voided and recorded anew. The command
app: does the same once per file, and Void returns the instant of the
voided punch instead of recalculating.
Impact
A stage run takes a constant time per batch and a constant amount of memory: 5 000 punches import in under a minute
instead of a run that grows without bound. The imported data, the issues and the origin migration are unchanged.