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,