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

Reduce reads with overlapping previous documents

    XMLWordPrintableJSON

    Details

      Description

      Reading a node state in a past revision can become expensive when the change history in the previous documents have overlapping changes. In this case, the changes in the previous documents must be merge sorted to find the correct value for the properties on the node. The more overlapping ranges there are, the more sorting is needed.

      There is a prominent node in the repository that seems to create quite many of those previous documents. The /:async nodes gets frequent updates and is therefore split on a regular basis. Because the properties on this node are not all updated at the same time, it is quite likely that previous document ranges overlap.

        Attachments

        1. OAK-5559.patch
          2 kB
          Marcel Reutegger
        2. cost-of-reading-in-past.png
          77 kB
          Marcel Reutegger

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: