Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-23093

Remove useless sort on dc:created in the workflow cleaner

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 8.10
    • Fix Version/s: 8.10-HF16, 9.3
    • Component/s: Workflow

      Description

      The query used to get the finished workflows in DocumentRoutingServiceImpl#WfCleaner uses a sort on the dc:created field. This sort seems to be useless and can consume a lot of memory if the cleaner is run against a database which contains many terminated workflows.

      Another tiny improvement? Replace

      (ecm:currentLifeCycleState = 'done' OR ecm:currentLifeCycleState = 'canceled')
      

      by

      ecm:currentLifeCycleState IN ('done', 'canceled')
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 6 hours
                  6h

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.