Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-7013

Approvers performance

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Reviewed
    • 4.2, 4.3
    • 4.4
    • Policies and approvals
    • Active subscription
    • 4.4

    Description

      Default behaviour of approvers has useless performance, can't be used at all. Even if there are no approvers, no workflows it slows down midpoint to the point it's not usable (20 times slower).

      First cause is DB query, that causes a lot of disk IO reads:

      SELECT o.oid, o.fullobject
      FROM m_focus o
      INNER JOIN m_object o ON o.oid = o.oid
      LEFT OUTER JOIN m_reference r ON o.oid = r.owner_oid AND (r.reference_type = 8)
      WHERE r.targetoid = :1 AND (r.relation IN (:2, :3)); 

      Only way to get midpoint working was to disable default approval behavior in system config using:

      <workflowConfiguration>
          <useLegacyApproversSpecification>never</useLegacyApproversSpecification>
          <useDefaultApprovalPolicyRules>never</useDefaultApprovalPolicyRules>
      </workflowConfiguration> 

      Attachments

        Activity

          People

            lazyman Viliam Repan
            lazyman Viliam Repan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: