Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-1266 DocumentStore implementation for relational databases
  3. OAK-8264

RDBDocumentStore: docs obtained from cache may need revalidation before returned to caller

    XMLWordPrintableJSON

    Details

    • Type: Technical task
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: rdbmk
    • Labels:
      None

      Description

      The cache internally invalidates documents by setting the lastCheckTime to 0. When a document like that is returned from the cache, it needs to be rechecked in the persistence. This currently happens for find(), but not for getIfCached() or internal methods such as readDocumentCached(). This may cause unneeded JDBC roundtrips when a document like that indeed changed in the meantime and needs to be updated in the database.

        Attachments

        1. OAK-8264.diff
          1 kB
          Julian Reschke

          Activity

            People

            • Assignee:
              reschke Julian Reschke
              Reporter:
              reschke Julian Reschke
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: