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
Solved! Go to Solution.
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.
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.
Hi angelborroy,
Many thanks for clarifying this for me. I will keep this in mind in future when executing jobs with batches.
Brian
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.