---
title: "Bugfix: The punches import keeps its speed and memory"
manual: "adsum by web-vision"
version: "main"
permalink: "https://docs.typo3.org/permalink/web-vision/adsum-monorepo:bugfix-1793000625@main"
source: "Changelog/1.0.0/Bugfix-1793000625-ImportPunchesInConstantTimeAndMemory.rst"
rendered: "2026-11-07T02:01:32+00:00"
---

# Bugfix: The punches import keeps its speed and memory {#bugfix-1793000625}

## Description {#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:attendance:import-punches` does the same once per file, and `VoidImportedPunch` returns the instant of the
voided punch instead of recalculating.

## Impact {#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.
