We have opened a ticket on this, but wanted to ask the Alfresco user community what they do in similar circumstances.
The short of it is that workflows are taking longer and longer to execute after adding just a few hundred content items or having more than 3 or so users adding content and submitting it through the system.
This, in turn, leads to items appearing in search after a considerable drag, and for scheduled published jobs taking longer than they should.
Much of the content is for direct publish and does not require review or scheduling, but we are submitting it through workflow anyway.
All of this content is uploaded via custom webscripts that manipulate content based upon business rules, generate renditions, and then submit workflows to push content to staging.
We're attempting to address this a few ways - two of which I want to share
1. Reducing the number of workflows – by bundling related content together into singular workflow jobs (just good practice - we're on our way to doing this).
2. Exploring the effects of changing lucene indexing from serial to asynchronous (probably not desired since we want content to appear in search *sooner* rather than later).
3. Exploring if we can have workflows run parallel for the content that has unique paths
4. Exploring if we can submit content to staging without a workflow for the content that has unique paths
On item 4 we have attempted to use SandboxService's submitList() to avoid using a workflow, but apparently it still issues a workflow.
Do workflows in WCM execute serially (that's what we are observing btw) ? And if so does that imply a relatively small number of content items that can published in a timely manner from it?
For example if a workflow/index job takes 30 seconds (best case scenario we see), and you have 5 users attempting to publish 5 items a piece in quick succession:
(Users*Items)(WF)=12 minutes of jobs in flight.
User 6 comes along to do the same and now needs to wait *at least* 12 1/2 minutes before seeing their content flow through the system (get on staging, get indexed, and be available for others to see/edit/etc?)
In each case the content item is uniquely pathed within Alfresco, and does not require review approval workflow.
We are using Enterprise 3.1.1 on Solaris, publishing to a FSR.
Thanks for your experience and suggestions,
Karl