[open-ils-commits] r16027 - in trunk/Open-ILS/src/sql/Pg: . upgrade (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sat Mar 27 16:55:34 EDT 2010
Author: miker
Date: 2010-03-27 16:55:28 -0400 (Sat, 27 Mar 2010)
New Revision: 16027
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0218.schema.metabib.rec_descriptor.fixed_field_indexes.sql
Modified:
trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
trunk/Open-ILS/src/sql/Pg/030.schema.metabib.sql
Log:
add useful fixed-field indexing for browse-by-FF support (yay for QueryParser!)
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-03-27 20:50:15 UTC (rev 16026)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-03-27 20:55:28 UTC (rev 16027)
@@ -60,7 +60,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0217'); -- miker
+INSERT INTO config.upgrade_log (version) VALUES ('0218'); -- miker
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
Modified: trunk/Open-ILS/src/sql/Pg/030.schema.metabib.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/030.schema.metabib.sql 2010-03-27 20:50:15 UTC (rev 16026)
+++ trunk/Open-ILS/src/sql/Pg/030.schema.metabib.sql 2010-03-27 20:55:28 UTC (rev 16027)
@@ -129,8 +129,6 @@
date2 TEXT
);
CREATE INDEX metabib_rec_descriptor_record_idx ON metabib.rec_descriptor (record);
-/* We may not need these...
-
CREATE INDEX metabib_rec_descriptor_item_type_idx ON metabib.rec_descriptor (item_type);
CREATE INDEX metabib_rec_descriptor_item_form_idx ON metabib.rec_descriptor (item_form);
CREATE INDEX metabib_rec_descriptor_bib_level_idx ON metabib.rec_descriptor (bib_level);
@@ -143,9 +141,9 @@
CREATE INDEX metabib_rec_descriptor_pub_status_idx ON metabib.rec_descriptor (pub_status);
CREATE INDEX metabib_rec_descriptor_item_lang_idx ON metabib.rec_descriptor (item_lang);
CREATE INDEX metabib_rec_descriptor_vr_format_idx ON metabib.rec_descriptor (vr_format);
+CREATE INDEX metabib_rec_descriptor_date1_idx ON metabib.rec_descriptor (date1);
+CREATE INDEX metabib_rec_descriptor_dates_idx ON metabib.rec_descriptor (date1,date2);
-*/
-
-- Use a sequence that matches previous version, for easier upgrading.
CREATE SEQUENCE metabib.full_rec_id_seq;
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0218.schema.metabib.rec_descriptor.fixed_field_indexes.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0218.schema.metabib.rec_descriptor.fixed_field_indexes.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0218.schema.metabib.rec_descriptor.fixed_field_indexes.sql 2010-03-27 20:55:28 UTC (rev 16027)
@@ -0,0 +1,22 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0218'); --miker
+
+CREATE INDEX metabib_rec_descriptor_record_idx ON metabib.rec_descriptor (record);
+CREATE INDEX metabib_rec_descriptor_item_type_idx ON metabib.rec_descriptor (item_type);
+CREATE INDEX metabib_rec_descriptor_item_form_idx ON metabib.rec_descriptor (item_form);
+CREATE INDEX metabib_rec_descriptor_bib_level_idx ON metabib.rec_descriptor (bib_level);
+CREATE INDEX metabib_rec_descriptor_control_type_idx ON metabib.rec_descriptor (control_type);
+CREATE INDEX metabib_rec_descriptor_char_encoding_idx ON metabib.rec_descriptor (char_encoding);
+CREATE INDEX metabib_rec_descriptor_enc_level_idx ON metabib.rec_descriptor (enc_level);
+CREATE INDEX metabib_rec_descriptor_audience_idx ON metabib.rec_descriptor (audience);
+CREATE INDEX metabib_rec_descriptor_lit_form_idx ON metabib.rec_descriptor (lit_form);
+CREATE INDEX metabib_rec_descriptor_cat_form_idx ON metabib.rec_descriptor (cat_form);
+CREATE INDEX metabib_rec_descriptor_pub_status_idx ON metabib.rec_descriptor (pub_status);
+CREATE INDEX metabib_rec_descriptor_item_lang_idx ON metabib.rec_descriptor (item_lang);
+CREATE INDEX metabib_rec_descriptor_vr_format_idx ON metabib.rec_descriptor (vr_format);
+CREATE INDEX metabib_rec_descriptor_date1_idx ON metabib.rec_descriptor (date1);
+CREATE INDEX metabib_rec_descriptor_dates_idx ON metabib.rec_descriptor (date1,date2);
+
+COMMIT;
+
More information about the open-ils-commits
mailing list