AnsweredAssumed Answered

How to disable history in spring activiti

Question asked by yaswanthbsactiviti on Jan 28, 2019
Latest reply on Feb 1, 2019 by yaswanthbsactiviti

Hi Everyone,

 

I am using Activiti with spring boot, I am facing few performance issues while getting the data from the activiti tables this is due to the history tables I guess.

 

When I am querying for the data from the activiti tables, in the 1st scenario it took 0.239 seconds to get the result but in the 2nd scenario it took 1.884 seconds to fetch the data from the database.

 

Table NameTotal records available (1st scenario)Total records available (2nd scenario)
act_ge_bytearray
21777162
act_hi_actinst
245216702
act_hi_identitylink
12548409
act_hi_procinst
4073569
act_hi_taskinst
12548409
act_hi_varinst
4073569

 

This is the main reason, I want to disable the history. 

 

Tech stack:

Spring Activiti - 5.22.0

Spring Boot version - 1.5.8.Release

MyBatis for ORM

 

Please let me know, Is there any configuration to disable the history and will be there any problems if we disable the history.

 

Regards

Yashu

 

@ Edited

 

I tried the below code, which I kept it in springboot configuration class. Still no luck.

@Bean
public ProcessEngineConfigurationImpl getProcessEngineConfiguration() {
SpringProcessEngineConfiguration processEngineConf = new SpringProcessEngineConfiguration();
processEngineConf.setHistory(HistoryLevel.NONE.getKey());
return processEngineConf;
}

Outcomes