[open-ils-commits] r9897 - trunk/Open-ILS/src/sql/Pg
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Jun 20 14:59:51 EDT 2008
Author: miker
Date: 2008-06-20 14:59:48 -0400 (Fri, 20 Jun 2008)
New Revision: 9897
Modified:
trunk/Open-ILS/src/sql/Pg/030.schema.metabib.sql
Log:
adding some indexes that are needed for large installations -- beware the speed impact for initial batch loading!
Modified: trunk/Open-ILS/src/sql/Pg/030.schema.metabib.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/030.schema.metabib.sql 2008-06-20 18:08:24 UTC (rev 9896)
+++ trunk/Open-ILS/src/sql/Pg/030.schema.metabib.sql 2008-06-20 18:59:48 UTC (rev 9897)
@@ -145,6 +145,8 @@
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
More information about the open-ils-commits
mailing list