From 29bc9d5cd08f9d5ac69e2df12e2db3393a092825 Mon Sep 17 00:00:00 2001 From: ghollins Date: Mon, 22 Mar 2021 12:47:18 -0700 Subject: [PATCH] added extra indices to optimized trigger performance --- install/sql/core.afterstartup.sql.template | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install/sql/core.afterstartup.sql.template b/install/sql/core.afterstartup.sql.template index ed2c7b7a..e9bbd4aa 100644 --- a/install/sql/core.afterstartup.sql.template +++ b/install/sql/core.afterstartup.sql.template @@ -1,5 +1,8 @@ --- CWS PROCESS STATUS SUPPORT +-- Create indices that help with proc_inst_changed trigger performance +CREATE INDEX PARENT_ACT_INST_ID_ ON ACT_HI_ACTINST (`PARENT_ACT_INST_ID_`); +CREATE INDEX ACT_TYPE_ ON ACT_HI_ACTINST (`ACT_TYPE_`); +-- CWS PROCESS STATUS SUPPORT CREATE TABLE IF NOT EXISTS `cws_proc_inst_status` ( `id` INT NOT NULL AUTO_INCREMENT, `proc_inst_id` VARCHAR(255) NOT NULL,