-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to automatically or en mass trim old Workflow
s
#16447
Comments
We triaged this issue and set the milestone according to the priority we think is appropriate (see the docs on how we triage and prioritize issues). This indicates when the core team may start working on it. However, if you'd like to contribute, we'd warmly welcome you to do that anytime. See our guide on contributions here. |
possibly duplicate of #11609 We actually wrote this internally (pruning/trimming), and have been wanting to pr it back. With any luck that might actually happen soon |
That would be awesome! |
Is your feature request related to a problem? Please describe.
Executing a Workflow Type creates a
Workflow
document, and a correspondingWorkflowIndex
. Unless you deleteWorkflow
s manually (either one by one, or in bulk page by page), this causes both theDocument
and theWorkflowIndex
table to grow indefinitely.This becomes a real issue if workflows are executed frequently. E.g., the site of one of our client uses Workflows to handle form submissions, which forms are submitted by thousands of people every workday. The result is that the Document table is now 12 GB with 860k rows, and the SQL query behind
/Admin/Workflows/Types
(SELECT DISTINCT [WorkflowIndex].[WorkflowTypeId] FROM [WorkflowIndex]
) times out, resulting in an error page.Related to #6056.
Describe the solution you'd like
A feature that would periodically delete
Workflow
s older than a given threshold, much like Audit Trail trimming works, would be ideal.This needs special care and batching, since there can be a huge number of
Workflow
s (860k for us), especially the first time it runs.Describe alternatives you've considered
The ability to delete
Workflow
s en mass mass, more than just 10 items on a page.The text was updated successfully, but these errors were encountered: