when deleting a HistoricProcessInstance, the following SQL statement is executed:
delete from ACT_GE_BYTEARRAY where ID_ in
(select BYTEARRAY_ID_ from ACT_HI_DETAIL where PROC_INST_ID_ = ?
if there are many values in the ACT_HI_DETAIL table, this can lock the ACT_GE_BYTEARRAY for quite some time
- refactor deletion of HistoricVariableUpdate to mirror deletion of HistoricVariableInstance