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

Improved caching for DataStore

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.6.0
    • blob

    Description

      The current CachingDataStore implementation used with S3DataStore has certain problems:

      • Lack of stats to show hit rate/miss rates for files being requested for downloads
      • Lack of stats for async uploads
      • CachingDataStore starts proactively downloading files in the background when a call to getRecord is made.
      • Async upload functionality leaks into Backend implementations, LocalCache classes.
      • The call to DataStore#getRecord() which makes multiple calls to backends which is problematic for S3 (i.e. when not being served bu cache)
      • There is some functionality which is not used with Oak like length cache, sync/async touch etc. which can be removed and code simplified.

      Attachments

        1. FileReadBenchmark.png
          73 kB
          Amit Jain
        2. FileWriteBenchmark.png
          92 kB
          Amit Jain
        3. FileReadBenchmark_0Cache.png
          72 kB
          Amit Jain

        Issue Links

          Activity

            People

              amitjain Amit Jain
              amitjain Amit Jain
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: