[
https://issues.apache.org/jira/browse/OAK-1137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alex Parvulescu updated OAK-1137:
---------------------------------
Attachment: OAK-1137-v2.patch
attaching a new version that includes bits from OAK-685 as well unfortunately.
I've reached a point where I can't really cut a line between the 2 issues
anymore.
This version introduces a query index by popular demand :)
It looks like it's working ok, the upside should be that if we disable this
index traversal will be used. The previous version had no way of extracting a
NodeState from the Tree so this is cleaner in that regard.
It also changes the storage structure to a tree, same stuff as the property
index (same storage strategy classes with minor tweaks).
Now for the sucky parts:
- I've managed to hit OAK-182 : child node count fails to exclude hidden
nodes. Yes, now the node has hidden children and they break the session export
tests. I've hacked in a work-around but it's probably not pretty.
I've also hit OAK-1192, (lucky me), a NPE in the versioning bits, there's
something wrong there but I can't really tell what it is, so unfortunately no
dirty hacks included to get the tests passing.
So fair warning not all tests pass because of this NPE.
This version should help us reach consensus sooner, I think I've managed to
incorporate everybody's opinion, if I left something out, please let me know.
Feedback needed, please mind the failing tests, this is still a WIP
> Node.getReferences() is slow due to missing property index
> ----------------------------------------------------------
>
> Key: OAK-1137
> URL: https://issues.apache.org/jira/browse/OAK-1137
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: core, jcr
> Affects Versions: 0.10
> Reporter: Tobias Bocanegra
> Assignee: Alex Parvulescu
> Priority: Critical
> Fix For: 0.12
>
> Attachments: OAK-1137-v2.patch, OAK-1137.patch
>
>
> Node.getReferences() traverses all items in the repository in order to find
> the properties that reference the given node. this is super slow and does not
> scale.
> the (weak) reference properties should be auto-indexed.
--
This message was sent by Atlassian JIRA
(v6.1#6144)