You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2015/06/22 15:29:00 UTC
[jira] [Comment Edited] (OAK-3002) Optimize docCache and
docChildrenCache invalidation by filtering using journal
[ https://issues.apache.org/jira/browse/OAK-3002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14595888#comment-14595888 ]
Marcel Reutegger edited comment on OAK-3002 at 6/22/15 1:28 PM:
----------------------------------------------------------------
I see, but as soon as you modify a leaf document all ancestor documents eventually need to be modified as well. It's required because ancestor documents must reflect the leaf change with an updated _lastRev entry. You will never have a gap in the tree of modified documents, even if you represent it as a list.
was (Author: mreutegg):
I see, but as soon as you modify a lead document all ancestor documents eventually need to be modified as well. It's required because ancestor documents must reflect the leaf change with an updated _lastRev entry. You will never have a gap in the tree of modified documents, even if you represent it as a list.
> Optimize docCache and docChildrenCache invalidation by filtering using journal
> ------------------------------------------------------------------------------
>
> Key: OAK-3002
> URL: https://issues.apache.org/jira/browse/OAK-3002
> Project: Jackrabbit Oak
> Issue Type: Sub-task
> Components: core, mongomk
> Reporter: Stefan Egli
> Assignee: Stefan Egli
> Labels: scalability
> Fix For: 1.2.3, 1.3.2
>
> Attachments: JournalLoadTest.java, OAK-3002-improved-doc-and-docChildren-cache-invaliation-and-junit.4.patch, OAK-3002-improved-doc-and-docChildren-cache-invaliation.3.patch, OAK-3002-improved-doc-cache-invaliation.2.patch
>
>
> This subtask is about spawning out a [comment|https://issues.apache.org/jira/browse/OAK-2829?focusedCommentId=14588114&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14588114] on OAK-2829 re optimizing docCache invalidation using the newly introduced external diff journal:
> {quote}
> Attached OAK-2829-improved-doc-cache-invaliation.patch which is a suggestion on how to avoid invalidating the entire document cache when doing a {{backgroundRead}} but instead making use of the new journal: ie only invalidate from the document cache what has actually changed.
> I'd like to get an opinion ([~mreutegg], [~chetanm]?) on this first, I have a load test pending locally which found invalidation of the document cache to be the slowest part thus wanted to optimize this first.
> Open still/next:
> * also invalidate only necessary parts from the docChildrenCache
> * junits for all of these
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)