[ 
https://issues.apache.org/jira/browse/OAK-1312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15434914#comment-15434914
 ] 

Julian Reschke edited comment on OAK-1312 at 10/19/16 11:50 AM:
----------------------------------------------------------------

Just a quick note: with the implementation, we can have potential holes in 
documents - say we have {{/a, /a/b and /a/b/c}} and {{/a/b}} is bundled with 
{{/a}}. Then we'd only have documents - {{0:/, 1:/a, 3:/a/b/c}}.
While that, of course, is ok, but we would need to factor this at least in 
oak-mongo.js (I can't recall any place else right now) which loops recursively 
at quite a few places with breaking the loop if no docs are found at a given 
depth.


was (Author: catholicon):
Just a quick note: with the implementation, we can have potential holes in 
documents - say we have {{/a, /a/b and /a/b/c}} and {{/a/b}} is bundled with 
{{/a}}. Then we'd only have documents - {{0:/, 1:/a, 3:/a/b/c}}.
Whlie that, of course, is ok, but we would need to factor this at least in 
oak-mongo.js (I can't recall any place else right now) which loops recursively 
at quite a few places with breaking the loop if no docs are found at a given 
depth.

> 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-meta-prop-handling.patch, 
> OAK-1312-review-v1.diff, OAK-1312-review-v2.diff, benchmark-results.txt, 
> run-benchmark.sh
>
>
> 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)

Reply via email to