Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3319

Improve performance of repository updates - tweak index 'deletes' creation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.5.1
    • jackrabbit-core
    • None

    Description

      We noticed during some tests that there is a performance hit for heavy update operations when creating a new index reader.

      It appears that for larger index segments (2 million docs) the hit comes from checking each entry if it is deleted or not, so the workaround would be to try to minimize this intensive operation by moving the creation and update of this set from the ReadOnlyIndexReader to the CommittableIndexReader.

      The test setup: repository of 7 million nodes, with 4 threads that do only updates on duration of 5 mins.

      The result after applying the patch: the throughput (number of operations per second doubled), going from ~32 ops/second to ~64 ops/second (with highs up to 74).

      Attachments

        1. JR-3319.patch
          7 kB
          Alex Deparvu

        Activity

          People

            stillalex Alex Deparvu
            stillalex Alex Deparvu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: