https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37564
Nick Clemens (kidclamp) <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #176186|0 |1 is obsolete| | Attachment #177199|0 |1 is obsolete| | Attachment #177210|0 |1 is obsolete| | --- Comment #12 from Nick Clemens (kidclamp) <[email protected]> --- Created attachment 188704 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188704&action=edit Bug 37564: Prevent bulkmarcimport from generating holds queue jobs We shouldn't need to update the holds queue for such command line imports when only adding/updating a biblio. When we add a biblio and add items, we do not need to rebuild the holds queue as there can't be holds on a new record If the record was matched and then updated or ignored we will need to rebuild the queue as we add items. TO DO: - Right now we rebuild per item added, really we should probably skip the entire build until the end and handle here. - We should also delay record index builds until all items have been added - currently we will reindex once per item Testing notes (using KTD): 1. Enable the real times hold queue: RealTimeHoldsQueue = Enable 2. Delete any background jobs: DELETE FROM background_jobs; 3. Check the number of holds queue jobs in the database: SELECT COUNT(*) FROM background_jobs WHERE type = update_holds_queue_for_biblios'; 4. Export a record with items as XML from Koha. 5. Delete the exported record from Koha 6. Import the record, using bulkmarcimport.pl: misc/migration_tools/bulkmarcimport.pl -b -v -m=MARCXML --file my_record.marcxml 7. Check the jobs in the database, there should be one per item imported. 8. Delete the imported record 9. Delete all background jobs (see step 2). 10. Apply the patch 11. Import the record again (see step 6) 12. Check the number of holds queue jobs in the database again - should be 0. 13. Import biblio and use matchin option to overlay previous import 14. Check the number of holds queue jobs in the database again - should be one per item. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
