bulk MARC record import - speed improved
authorGalen Charlton <galen.charlton@liblime.com>
Tue, 25 Dec 2007 07:25:54 +0000 (01:25 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 25 Dec 2007 15:08:28 +0000 (09:08 -0600)
commit7d47666f7e513889f79ce9975eeedb1075cf25fb
tree79e12c1e6abb8824f815e95a997652556d225fdc
parent2143002750feff4659308ad338334247d30fa75a
bulk MARC record import - speed improved

Changes to improve speed of MARC bib and item
imports:

[1] Turn off autocommit and commit database
    transactions in larger batches.
[2] Introduce a new C4::Biblio function (AddBiblioAndItems)
    to combine AddBiblio and AddItems -- this is faster
    because we are not parsing the MARC XML of the biblio
    every time we add an item.
[3] Introduce FasterTransformMarcToKoha, which is much
    faster than TransformMarcToKoha.  The new version,
    which will replace the old one once it has been
    fully tested, scans through each field in the
    MARC record just once, instead of potentially
    dozens of times.
[4] Remove code in bulkmarcexport that moved the
    item tags to separate MARC::Record objects.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Biblio.pm
misc/migration_tools/bulkmarcimport.pl