index which /greatly/ speeds collection of pending active events
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 Jul 2010 15:39:06 +0000 (15:39 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 Jul 2010 15:39:06 +0000 (15:39 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6_0@16998 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/sql/Pg/400.schema.action_trigger.sql

index 4db2f59..5f85d0e 100644 (file)
@@ -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,