From: dbs Date: Thu, 26 Mar 2009 03:05:17 +0000 (+0000) Subject: Backport r12679 from trunk: Even better indexing on afr - thanks miker! X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b0b29e7245ea4358aca3b4e208a81f53855de6dd;p=Evergreen.git Backport r12679 from trunk: Even better indexing on afr - thanks miker! git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4@12680 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/sql/Pg/011.schema.authority.sql b/Open-ILS/src/sql/Pg/011.schema.authority.sql index 07497ae7a2..795959a6fe 100644 --- a/Open-ILS/src/sql/Pg/011.schema.authority.sql +++ b/Open-ILS/src/sql/Pg/011.schema.authority.sql @@ -70,8 +70,7 @@ CREATE TABLE authority.full_rec ( index_vector tsvector NOT NULL ); CREATE INDEX authority_full_rec_record_idx ON authority.full_rec (record); -CREATE index authority_full_rec_subfield_idx ON authority.full_rec (subfield); -CREATE index authority_full_rec_tag_idx ON authority.full_rec (tag); +CREATE INDEX authority_full_rec_tag_subfield_idx ON authority.full_rec (tag, subfield); CREATE INDEX authority_full_rec_tag_part_idx ON authority.full_rec (SUBSTRING(tag FROM 2)); CREATE TRIGGER authority_full_rec_fti_trigger BEFORE UPDATE OR INSERT ON authority.full_rec