Marcel Reutegger created OAK-1861:
-------------------------------------

             Summary: 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


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)

Reply via email to