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 2014/06/18 16:22:05 UTC

[jira] [Assigned] (OAK-1861) Limit memory usage of DocumentNodeStore.readChildren()

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

Marcel Reutegger reassigned OAK-1861:
-------------------------------------

    Assignee: Marcel Reutegger

> Limit memory usage of DocumentNodeStore.readChildren()
> ------------------------------------------------------
>
>                 Key: OAK-1861
>                 URL: https://issues.apache.org/jira/browse/OAK-1861
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: core, mongomk
>            Reporter: Marcel Reutegger
>            Assignee: Marcel Reutegger
>             Fix For: 1.1
>
>
> There is still a TODO in DocumentNodeStore.readChildren() about memory usage. The name offset is already implemented and used when iterating over many child nodes. But there are still cases where the readChildren() method itself may use too much memory. This happens when there are a lot of documents for deleted child nodes. The for loop inside readChildren() will double the rawLimit until it is able to fetch the requested nodes and start again with an empty list of children. This should be improved to continue after the last returned document.



--
This message was sent by Atlassian JIRA
(v6.2#6252)