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 Name | Total records available (1st scenario) | Total records available (2nd scenario) |
|---|
| 2177 | 7162 |
| 2452 | 16702 |
| 1254 | 8409 |
| 407 | 3569 |
| 1254 | 8409 |
| 407 | 3569 |
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;
}