解决福建批量复核慢

--解决福建批量复核慢的,以后其他省也可以这样

DROP INDEX CMBBCD.PROCESSINSTANCE_INDEX;
DROP INDEX CMBBCD.TASKINSTANCE_INDEX;
DROP INDEX CMBBCD.TASKMGMTINSTANCE_INDEX;
DROP INDEX CMBBCD.TOKEN_INDEX;
DROP INDEX CMBBCD.JBPM_VARIABLE_INSTANCE_INDEX;
DROP INDEX CMBBCD.JBPM_VARIABLE_MAP_INDEX;
DROP INDEX CMBBCD.CONTEXTINSTANCE_INDEX;

CREATE INDEX CMBBCD.PROCESSINSTANCE_INDEX ON CMBBCD.JBPM_MODULEINSTANCE (PROCESSINSTANCE_);
CREATE INDEX CMBBCD.TASKINSTANCE_INDEX ON CMBBCD.JBPM_COMMENT(TASKINSTANCE_);
CREATE INDEX CMBBCD.TASKMGMTINSTANCE_INDEX ON CMBBCD.JBPM_TASKINSTANCE(TASKMGMTINSTANCE_);
CREATE INDEX CMBBCD.TOKEN_INDEX ON CMBBCD.JBPM_COMMENT(TOKEN_);
CREATE INDEX CMBBCD.JBPM_VARIABLE_INSTANCE_INDEX ON CMBBCD.JBPM_VARIABLEINSTANCE(TASKINSTANCE_);
CREATE INDEX CMBBCD.JBPM_VARIABLE_MAP_INDEX ON CMBBCD.JBPM_VARIABLEINSTANCE(TOKENVARIABLEMAP_);
CREATE INDEX CMBBCD.CONTEXTINSTANCE_INDEX ON CMBBCD.JBPM_TOKENVARIABLEMAP(CONTEXTINSTANCE_);

 

--复核加载上面的那个页面很慢加的索引

DROP INDEX CMCS3_PAYMENT_LIST_INDEX;
CREATE INDEX CMCS3_PAYMENT_LIST_INDEX ON CMCS3_PAYMENT_LIST (payserial);

 

--后来广西复核慢加上去的,但效果不明显

DROP INDEX JBPM_TRANSITION_INDEX;
CREATE INDEX JBPM_TRANSITION_INDEX ON JBPM_TRANSITION (FROM_);

DROP INDEX CMCS3_PROCESS_TASK_INDEX;
CREATE INDEX CMCS3_PROCESS_TASK_INDEX ON CMCS3_PROCESS_TASK (ProcessID);

DROP INDEX CMCS3_PROCESS_TASK_INDEX2;
CREATE INDEX CMCS3_PROCESS_TASK_INDEX2 ON CMCS3_PROCESS_TASK (TaskId);

DROP INDEX JBPM_TASKINSTANCE_INDEX;
CREATE INDEX JBPM_TASKINSTANCE_INDEX ON JBPM_TASKINSTANCE (CREATE_);

DROP INDEX JBPM_TASKINSTANCE_INDEX2;
CREATE INDEX JBPM_TASKINSTANCE_INDEX2 ON JBPM_TASKINSTANCE (END_);

 

 

--点击制单慢的,加了如下索引会快一点

DROP INDEX SUBMITTIME_INDEX;
CREATE INDEX SUBMITTIME_INDEX ON CMCS3_TRANSFER_BILL (SUBMITTIME);
DROP INDEX PAYAMOUNT_INDEX;
CREATE INDEX PAYAMOUNT_INDEX ON CMCS3_TRANSFER_BILL_LIST (PAYAMOUNT);

你可能感兴趣的:(批量)