We have recently moved our app to a different datacentre from out database and we found the increased latency was slowing queries throughout our application. We managed to largely resolve this by batch fetching queries by increasing the default_batch_fetch_size in Hibernate, which is our JPA implementation. Our stack is Spring-Boot, Hibernate, Oracle.
We use Activiti 5.22.0 and it looks like we have the same issue. i.e. when we run a query such as;
taskService.createTaskQuery().active().includeProcessVariables().includeTaskLocalVariables().list();
We see a large number of executions which slows the overall lookup down significantly due to the increased database trip time per execution.
Is there any way to set a batch fetch size to reduce the overall number of executions?
I realise I posted this in the wrong section. I have re-posted in Process Services, so this post question can be deleted, thanks.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.