FTS on serials records is unnecessary bloat
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 22 Jul 2009 13:21:06 +0000 (13:21 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 22 Jul 2009 13:21:06 +0000 (13:21 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13680 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/examples/fm_IDL.xml
Open-ILS/src/sql/Pg/210.schema.serials.sql
Open-ILS/tests/datasets/README

index e0ba9c1..6abb540 100644 (file)
@@ -2373,20 +2373,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        </actions>
                </permacrud>
        </class>
-       <class id="sfr" controller="open-ils.cstore" oils_obj:fieldmapper="serial::full_rec" oils_persist:tablename="serial.full_rec" reporter:label="Serial Full Record">
-               <fields oils_persist:primary="id" oils_persist:sequence="serial.full_rec_id_seq">
-                       <field name="id" reporter:datatype="id" />
-                       <field name="ind1" />
-                       <field name="ind2" />
-                       <field name="record" />
-                       <field name="subfield" />
-                       <field name="tag" />
-                       <field name="value" />
-               </fields>
-               <links>
-                       <link field="record" reltype="has_a" key="id" map="" class="sre"/>
-               </links>
-       </class>
        <class id="ssub" controller="open-ils.cstore" oils_obj:fieldmapper="serial::subscription" oils_persist:tablename="serial.subscription" reporter:label="Subscription">
                <fields oils_persist:primary="id" oils_persist:sequence="serial.subscription_id_seq">
                        <field name="active" reporter:datatype="bool"/>
index a8a98d7..46d7e22 100644 (file)
@@ -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,
index 825c778..7faeb5d 100644 (file)
@@ -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