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

Use a lower bound in VersionGC query to avoid checking unmodified once deleted docs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.7.0, 1.8.0
    • mongomk, rdbmk

    Description

      As part of OAK-3062 mreutegg suggested

      As a further optimization we could also limit the lower bound of the _modified
      range. The revision GC does not need to check documents with a _deletedOnce
      again if they were not modified after the last successful GC run. If they
      didn't change and were considered existing during the last run, then they
      must still exist in the current GC run. To make this work, we'd need to
      track the last successful revision GC run.

      Lowest last validated _modified can be possibly saved in settings collection and reused for next run

      Attachments

        1. OAK-3070.patch
          12 kB
          Vikas Saurabh
        2. OAK-3070-updated.patch
          15 kB
          Julian Reschke
        3. OAK-3070-updated.patch
          16 kB
          Julian Reschke
        4. OAK-3070-2.patch
          25 kB
          Marcel Reutegger
        5. OAK-3070-3.patch
          26 kB
          Marcel Reutegger

        Issue Links

          Activity

            People

              mreutegg Marcel Reutegger
              chetanm Chetan Mehrotra
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: