adding some indexes that are needed for large installations -- beware the speed impac...
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 20 Jun 2008 18:59:48 +0000 (18:59 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 20 Jun 2008 18:59:48 +0000 (18:59 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@9897 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/sql/Pg/030.schema.metabib.sql

index 27f2586..76ce782 100644 (file)
@@ -145,6 +145,8 @@ CREATE TABLE metabib.full_rec (
        value           TEXT            NOT NULL,
        index_vector    tsvector        NOT NULL
 );
+CREATE INDEX metabib_full_rec_tag_subfield_idx ON metabib.full_rec (tag,subfield);
+CREATE INDEX metabib_full_rec_value_idx ON metabib.full_rec (value);
 CREATE INDEX metabib_full_rec_record_idx ON metabib.full_rec (record);
 CREATE TRIGGER metabib_full_rec_fti_trigger
        BEFORE UPDATE OR INSERT ON metabib.full_rec