[open-ils-commits] r16995 - in trunk/Open-ILS/src/sql/Pg: . upgrade (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Jul 21 11:36:55 EDT 2010
Author: miker
Date: 2010-07-21 11:36:52 -0400 (Wed, 21 Jul 2010)
New Revision: 16995
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0347.schema.action_trigger_evt_idx.sql
Modified:
trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
trunk/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql
Log:
index which /greatly/ speeds collection of pending active events
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-07-21 15:07:04 UTC (rev 16994)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-07-21 15:36:52 UTC (rev 16995)
@@ -68,7 +68,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0346'); -- Scott McKellar
+INSERT INTO config.upgrade_log (version) VALUES ('0347'); -- miker
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
Modified: trunk/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql 2010-07-21 15:07:04 UTC (rev 16994)
+++ trunk/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql 2010-07-21 15:36:52 UTC (rev 16995)
@@ -225,6 +225,7 @@
error_output BIGINT REFERENCES action_trigger.event_output (id),
async_output BIGINT REFERENCES action_trigger.event_output (id)
);
+CREATE INDEX atev_target_def_idx ON action_trigger.event (target,event_def);
CREATE TABLE action_trigger.event_params (
id BIGSERIAL PRIMARY KEY,
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0347.schema.action_trigger_evt_idx.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0347.schema.action_trigger_evt_idx.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0347.schema.action_trigger_evt_idx.sql 2010-07-21 15:36:52 UTC (rev 16995)
@@ -0,0 +1,8 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0347');
+
+CREATE INDEX atev_target_def_idx ON action_trigger.event (target,event_def);
+
+COMMIT;
+
More information about the open-ils-commits
mailing list