[
https://issues.apache.org/jira/browse/OAK-1312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15430737#comment-15430737
]
Marcel Reutegger commented on OAK-1312:
---------------------------------------
A couple of notes even though you are working on an updated patch.
- DocumentNodeStore.dispose() closes the BundlingConflictHandler and logs a
warn message when the close method throws an IOException. The message does not
reference the second parameter.
- DocumentNodeStore.getBundlingHandler() is a bit misleading because it creates
a new bundling handler on each call. It is also a convenience method for
getBundlingConfigHandler().newBundllingHandler(). Maybe get rid of
getBundlingHandler()?
- DocumentNodeStore#bundlingEnabled is only used in the constructor and can be
removed.
- There are TODOs in CommitDiff. Is something missing here and the
implementation does not behave correctly or is it simply not optimized?
- Wouldn't it be cheaper to pass the bundlingContext as is to the
DocumentNodeState constructor in withRootRevision() and fromExternalChange()?
- Bundling needs to be enabled first before it can be used. Should we rather
have an option instead to disable it? A configuration is needed anyway to make
use of the feature.
> Bundle nodes into a document
> ----------------------------
>
> Key: OAK-1312
> URL: https://issues.apache.org/jira/browse/OAK-1312
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: core, documentmk
> Reporter: Marcel Reutegger
> Assignee: Chetan Mehrotra
> Labels: performance
> Fix For: 1.6
>
> Attachments: OAK-1312-review-v1.diff
>
>
> For very fine grained content with many nodes and only few properties per
> node it would be more efficient to bundle multiple nodes into a single
> MongoDB document. Mostly reading would benefit because there are less
> roundtrips to the backend. At the same time storage footprint would be lower
> because metadata overhead is per document.
> Feature branch -
> https://github.com/chetanmeh/jackrabbit-oak/compare/trunk...chetanmeh:OAK-1312
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)