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

Thomas Mueller commented on OAK-333:
------------------------------------

> Non-ASCII characters are converted to x0000

Sorry, I think thats not related to the problem... It seems this is only for 
XML export / import, and the query engine. So I guess it wouldn't apply here. 
When using UTF-8, non-ASCII characters might need 3 bytes, so the limit would 
be 333 such characters.

> there is no need to optimize reading some content structure if it is not read 
> at all or only a small fraction of it.

The use case I had in mind was traversing nodes (for example reading 15 nodes 
at a time, worst case traversing the whole repository). I think that's quite a 
common use case but I don't have any number.

> Node structure statistics

Thanks Jukka, that's very interesting! In that case 93% of all nodes would have 
a unique parent path hash, and for 7% of all nodes the hash wouldn't be unique. 
That's only 7% 'better' than the Jackrabbit 2.x case were each node has a 
unique node id.


 
                
> 1000 character path limit in MongoMK
> ------------------------------------
>
>                 Key: OAK-333
>                 URL: https://issues.apache.org/jira/browse/OAK-333
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: mongomk
>    Affects Versions: 0.5
>            Reporter: Mete Atamel
>            Assignee: Mete Atamel
>            Priority: Minor
>         Attachments: OAK-333.patch
>
>
> In an infinite loop try to add nodes one under another to have N0/N1/N2...NN. 
> At some point, the current parent node will not be found and the current 
> commit will fail. I think this happens when the path length exceeds 1000 
> characters. Is this enough for a path? I was able to create this way only 222 
> levels in the tree (and my node names were really short N1, N2 ...)
> There's an automated tests for this: NodeExistsCommandMongoTest.testTreeDepth

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to