Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-5207

Reduce reads in NodeDocument.getVisibleChanges()

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5.15, 1.6.0
    • Component/s: core, documentmk
    • Labels:
      None

      Description

      NodeDocument.getVisibleChanges() ensures visible changes are returned in descending revision order. In some cases this requires merge sorting of changes from different previous documents. The current implementation tries to avoid the merge sort by looking at the ranges of the previous documents and switches to a merge sort if they overlap. The implementation should be further optimized to only merge sort the subset of ranges that overlap and not the entire set of referenced previous document.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mreutegg Marcel Reutegger
                Reporter:
                mreutegg Marcel Reutegger
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: