]> git.evergreen-ils.org Git - working/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:00 +0000 (04:47 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 7 Apr 2011 04:47:00 +0000 (04:47 +0000)
commit7528f1623cb4931b66be434ff413c5bb992ff048
tree8515ad8b7223a1616be3dd23cd3683883cfa9855
parent489cd05e2738d5cfc7bb5524428c8c3314883c5d
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/trunk@20012 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/src/extras/import/marc2sre.pl.in