01-31-2022 07:32 PM
Hi Guys,
I am writing a job in alfresco which processes batches of documents at a time. I would like each of those batches to run in a seperate thread with their own transaction boundaries to improve throughtput of the job. I realise I dont understand how Repo actions fit within this. If I start a new Repo action for each batch in the job will the Repo action run a seperate thread in Alfresco?
Hope this is a simple question.
Regards
Brian
02-01-2022 04:22 AM
If you are using asynchronous Actions, every action will be executed on a different thread.
If you are using synchronous Actions, you need to create your own mechanism to handle a Thread Pool.
02-01-2022 04:22 AM
If you are using asynchronous Actions, every action will be executed on a different thread.
If you are using synchronous Actions, you need to create your own mechanism to handle a Thread Pool.
02-09-2022 12:49 AM
Hi angelborroy,
Many thanks for clarifying this for me. I will keep this in mind in future when executing jobs with batches.
Brian
Explore our Alfresco products with the links below. Use labels to filter content by product module.