From: dbs Date: Wed, 22 Jul 2009 13:21:06 +0000 (+0000) Subject: FTS on serials records is unnecessary bloat X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4e43ce8fa54997af44e55d1396f58bd96ee3446e;p=evergreen%2Fbjwebb.git FTS on serials records is unnecessary bloat git-svn-id: svn://svn.open-ils.org/ILS/trunk@13680 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index e0ba9c1fe..6abb540c2 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -2373,20 +2373,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - - - - - - - - - - - - - - diff --git a/Open-ILS/src/sql/Pg/210.schema.serials.sql b/Open-ILS/src/sql/Pg/210.schema.serials.sql index a8a98d7f0..46d7e2286 100644 --- a/Open-ILS/src/sql/Pg/210.schema.serials.sql +++ b/Open-ILS/src/sql/Pg/210.schema.serials.sql @@ -24,26 +24,6 @@ CREATE INDEX serial_record_entry_creator_idx ON serial.record_entry ( creator ); CREATE INDEX serial_record_entry_editor_idx ON serial.record_entry ( editor ); CREATE INDEX serial_record_entry_owning_lib_idx ON serial.record_entry ( owning_lib, deleted ); -CREATE TABLE serial.full_rec ( - id BIGSERIAL PRIMARY KEY, - record BIGINT NOT NULL REFERENCES serial.record_entry(id) DEFERRABLE INITIALLY DEFERRED, - tag CHAR(3) NOT NULL, - ind1 TEXT, - ind2 TEXT, - subfield TEXT, - value TEXT NOT NULL, - index_vector tsvector NOT NULL -); -CREATE INDEX serial_full_rec_record_idx ON serial.full_rec (record); -CREATE INDEX serial_full_rec_tag_part_idx ON serial.full_rec (SUBSTRING(tag FROM 2)); -CREATE TRIGGER serial_full_rec_fti_trigger - BEFORE UPDATE OR INSERT ON serial.full_rec - FOR EACH ROW EXECUTE PROCEDURE tsearch2(index_vector, value); - -CREATE INDEX serial_full_rec_index_vector_idx ON serial.full_rec USING GIST (index_vector); -/* Enable LIKE to use an index for database clusters with locales other than C or POSIX */ -CREATE INDEX serial_full_rec_value_tpo_index ON serial.full_rec (value text_pattern_ops); - CREATE TABLE serial.subscription ( id SERIAL PRIMARY KEY, callnumber BIGINT REFERENCES asset.call_number (id) ON DELETE SET NULL DEFERRABLE INITIALLY DEFERRED, diff --git a/Open-ILS/tests/datasets/README b/Open-ILS/tests/datasets/README index 825c77889..7faeb5d01 100644 --- a/Open-ILS/tests/datasets/README +++ b/Open-ILS/tests/datasets/README @@ -20,6 +20,6 @@ The following table lists the data sets we have collected for testing purposes. - PERL5LIB=/openils/lib/perl5/ perl ../../src/extras/import/marc2bre.pl --marctype XML --start 1 --idfield 901 --idsubfield a serials_marc21.xml | perl ../../src/extras/import/direct_ingest.pl | perl ../../src/extras/import/pg_loader.pl -or bre -or mrd -or mfr -or mtfe -or mafe -or msfe -or mkfe -or msefe -a mrd -a mfr -a mtfe -a mafe -a msfe -a mkfe -a msefe | psql -U evergreen -h localhost - Then load the MFHD records - - PERL5LIB=/openils/lib/perl5/ perl ../../src/extras/import/marc2sre.pl --marctype XML --password demo123 serials_mfhd.xml | perl ../../src/extras/import/direct_ingest.pl --serial | perl ../../src/extras/import/pg_loader.pl -or sre -or sfr -a sfr > mfhd21.sql + - PERL5LIB=/openils/lib/perl5/ perl ../../src/extras/import/marc2sre.pl --marctype XML --password demo123 serials_mfhd.xml | perl ../../src/extras/import/direct_ingest.pl --serial | perl ../../src/extras/import/pg_loader.pl -or sre > mfhd21.sql - psql -f mfhd21.sql