]> git.evergreen-ils.org Git - Evergreen.git/commit
Enable marc2sre.pl to run reasonably fast with a large set of bibs
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 7 Apr 2011 04:47:54 +0000 (04:47 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 7 Apr 2011 04:47:54 +0000 (04:47 +0000)
commitbf95c1646524f2605f608dee17a1ef96360af793
treee5cb2d8299f7e2b963a9a9ed3d9692c6e998e05b
parent0399e9021865c51b5497f5835ac96344964adc3d
Enable marc2sre.pl to run reasonably fast with a large set of bibs

Our previous iteration of marc2sre.pl used an ILIKE stanza
beginning with a wildcard to match system control numbers
without having to specify the institution's MARC code.
This worked, but was painfully slow in large bib sets as
the database needed to use a bitmap index scan to find matches.

By adding a --prefix flag, the user can specify the institutional
MARC code for the set of records and we can use an exact match
against metabib.full_rec.value, which is immeasurably faster.
This is, of course, a problem if there are multiple institutional
MARC codes in use for a given set of bibliographic records.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_1@20013 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/src/extras/import/marc2sre.pl.in