https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42504 --- Comment #3 from Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> --- Created attachment 198410 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198410&action=edit Bug 42504: Simplify update_totalissues.pl The script no longer touches MARC records. It now: - Updates biblioitems.totalissues directly via SQL - Batch reindexes modified records via the search engine indexer - Pre-filters unchanged records at the SQL level (--use-items) - Adds --commit option to control reindex batch size (default: 1000) The full ModBiblio pipeline (MARC parse/serialize, TransformMarcToKoha, cataloguing log, plugin hooks, OAI sets) is completely bypassed. Test plan: 1. Apply patch 2. Run: $ ktd --shell k$ perl misc/cronjobs/update_totalissues.pl --use-items -v -t => SUCCESS: Script runs, reports processed/modified counts 3. Checkout an item, then run: k$ perl misc/cronjobs/update_totalissues.pl --use-items -v --commit=10 => SUCCESS: Only changed biblios updated, batch reindex triggered 4. Sign off :-D -- You are receiving this mail because: You are watching all bug changes.