Uploaded image for project: 'ODE'
  1. ODE
  2. ODE-632

Reduce db deadlocks by getting rid of delete statements that use index

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.3
    • BPEL Runtime
    • None

    Description

      Under real work load, the on-the-fly instance cleanup functionality dead-locks a lot due to the excessive sub-select statements that depends on index. Some dbms like mysql locks the whole index that are used in the nested select statements.

      Split the delete queries into object id selection and deletion on the ids. Since we already batch up instance cleanup by number of instances(default is 10 instances), this is not a problem in scalability with big dataset.

      Attachments

        Activity

          People

            seanahn Sean Ahn
            seanahn Sean Ahn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: