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

Allow SegmentReferences/RecordNumbers to provide their memory estimates

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.68.0
    • None
    • segment-tar
    • None

    Description

      The Segment#estimateMemoryUsage currently takes into account the number of record numbers and referenced segment IDs in the segment in order to provide the total size estimate.

      This can be in issue when using implementations of RecordNumbers/SegmentReferences for which determining this total count is expensive. To improve this, we should allow RecordNumbers/SegmentReferences to provide themselves an estimate. By default, this estimation would be computed in the same way as we currently do, which makes this change backwards-compatible.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            nettlin Nicolas Ettlin

            Dates

              Created:
              Updated:

              Slack

                Issue deployment