cancel
Showing results for 
Search instead for 
Did you mean: 

Caching in Activiti Engine

mittalabhi86
Champ in-the-making
Champ in-the-making
Hi Team,

I enabled the DEBUG/TRACE level logs today in Activiti Engine, to track the high latency in the queries for signalling task completion.
What I saw was a pile of records being fetched against statement "ExecutionEntity.selectExecutionsByParentExecutionId". This is querying the db to get all the executions for given parent_id. Plus, there are other few queries getting fired as well.

I am wondering if there is a way to cache the data somehow, to not load this every time from DB. Apparently most of the execution data is dynamic, that is difficult to manage in cache, but is there a way to reduce the number of these db calls?

I have implemented caching at my end, for most of the db calls that my system was making. Yet there are huge db calls being made by Activiti to complete the task.

I have seen in user guide the deployment cache, but couldn't find anything on this side.

Please suggest, if this is possible.

Regards
Abhishek
1 REPLY 1

trademak
Star Contributor
Star Contributor
Hi,

The Activiti Engine should be scalable as well, so that means we would need a distributed cache.
We can definitely look into some cases where we could reduce the db queries.
Please create JIRA issues for this.

Best regards,