AnsweredAssumed Answered

Adding index on ACT_HI_PROCINST table

Question asked by andreea.bogdan on Apr 10, 2017
Latest reply on Apr 11, 2017 by cjose

We are currently experiencing a major issue regarding the ACT_HI_PROCINST historization table from Activiti.


The table has ~15 mio rows. We are querying the table in one of our activiti processes and since the table is huge, the time to query is really long.


We will be cleaning up the table to get rid of the very old data, but apart from that we would like to add an index on the PROC_DEF_ID_ column from the table. This improves the query times dramatically!


Three questions arise:

  1. Why isn't there an index already on the column? Is there a technical limitation on this?
  2. Do you see any problems adding this index? 
  3. Can we expect that Activiti will add an index on this table in the next versions?


Thanx a lot.