jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vikas Saurabh (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OAK-3066) Persistent cache for previous documents
Date Mon, 25 Jan 2016 19:52:40 GMT

     [ https://issues.apache.org/jira/browse/OAK-3066?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Vikas Saurabh updated OAK-3066:
-------------------------------
    Attachment: OAK-3066.wip.patch

Attaching a wip [patch|^OAK-3066.wip.patch]. Added prev cache inside {{NodeDocumentCache}}
as it seemed that prev documents are very specific to NodeDocuments. Building the cache, fetching
stats etc are done via DocumentStore implementation/wrappers.

Since node cache is already safe guarded via locks, we don't require any more locks - while
putting doc into cache, I check if it's a split doc... if so, then put it into prev doc cache
as well.
While getting, we poll prev cache first and then fallback to node cache. While getting via
loader, the fetched doc is put into prev doc cache if it's a split doc.

[~mreutegg], can you please have a look? It's just wip for now but it wraps the idea as I
think makes sense.

> Persistent cache for previous documents
> ---------------------------------------
>
>                 Key: OAK-3066
>                 URL: https://issues.apache.org/jira/browse/OAK-3066
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: core, mongomk
>            Reporter: Marcel Reutegger
>            Assignee: Vikas Saurabh
>              Labels: performance
>             Fix For: 1.4
>
>         Attachments: OAK-3066.wip.patch
>
>
> Previous (aka split) documents contain old revisions and are immutable documents. Those
documents should go into the persistent cache to reduce calls to the underlying DocumentStore.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message