From: miker Date: Wed, 21 Jul 2010 15:38:45 +0000 (+0000) Subject: index which /greatly/ speeds collection of pending active events X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bca6f6c2f1b3454f7a76856187a8b90bcee78a28;p=working%2FEvergreen.git index which /greatly/ speeds collection of pending active events git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6_1@16997 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql b/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql index 4db2f591f7..5f85d0eb8a 100644 --- a/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql +++ b/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql @@ -151,6 +151,7 @@ CREATE TABLE action_trigger.event ( template_output BIGINT REFERENCES action_trigger.event_output (id), error_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,