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

Provide lazy iterator for FileDataStore.getAllIdentifiers

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

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.20
    • core
    • None

    Description

      Currently FileDataStore.getAllIdentifiers evaluates all file eagerly and maintains the set in memory

      As an optimization i.e. prevent loading of all file names in memory we can use com.google.common.io.Files#fileTreeTraverser. This is currently used in org.apache.jackrabbit.oak.spi.blob.FileBlobStore#getAllChunkIds

      Same logic can be done for OakFileDataStore which extends the FileDataStore

      Attachments

        Activity

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

          People

            chetanm Chetan Mehrotra
            chetanm Chetan Mehrotra
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment