Bug 41403

Summary: Importing 10000 records from the staff interface fails
Product: Koha Reporter: Mathieu Saby <mathsabypro>
Component: MARC Bibliographic record staging/importAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: alexander.wagner
Version: 24.11   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Mathieu Saby 2025-12-08 17:05:33 UTC
In 24.11 I tried to import 5000 records with items attached, everything went well.

Then I tried to import 9996 records, it fails. The detail of task displayed 0 / 9996, then something like 1390 / 9996, then 0 / 9996 with the status "Failed"

I used the same records (duplicating the xml file and modifying barcodes to avoid  issues), so the problem must be related to Koha.
Comment 1 Mathieu Saby 2025-12-08 17:16:04 UTC
Probably a general technical limitation of Koha? But I haven't found a specific ticket, and if an fix/improvement could be made to remove this limitation on the number of records, that would be great.
Comment 2 Alexander Wagner 2025-12-09 17:43:35 UTC
Does this work using the batch importer? Just asking as I regularly load 40k records that way and it might help to nail the source.
Comment 3 Mathieu Saby 2025-12-10 08:35:32 UTC
I will ask explaination to our vendor Biblibre.
Maybe linked to https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26128 (plack issue) ?
Comment 4 Mathieu Saby 2025-12-10 09:26:44 UTC
Another test went well, with 10000 items imported in 6 minutes. But I'm leaving the ticket open while I investigate further...