jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Munteanu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-6578) Enhance the IndexStoreStrategy to return list of matching values and paths
Date Fri, 01 Sep 2017 10:29:00 GMT

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

Robert Munteanu commented on OAK-6578:

[~chetanm] - I've pushed my code on a feature branch at https://github.com/apache/jackrabbit-oak/compare/b254322...rombert:features/OAK-6506
. It applied on top of the patch for this issue.

The code is quite convoluted right now, but looking at {{UniqueIndexNodeStoreChecker#check}}
you can see the code that:

- reads all strategies for the index for each mount
- checks for duplicates by querying all strategies and looking for matches

The final version will have different approach, likely using StringSort, but I'm using this
code to validate that the API + Impl are suitable. Of course, any ideas for simplifying it
are more than welcomed

> Enhance the IndexStoreStrategy to return list of matching values and paths
> --------------------------------------------------------------------------
>                 Key: OAK-6578
>                 URL: https://issues.apache.org/jira/browse/OAK-6578
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: indexing
>            Reporter: Robert Munteanu
>            Assignee: Robert Munteanu
>             Fix For: 1.8, 1.7.7
>         Attachments: OAK-6578.patch
> For OAK-6506 I would need to extract from each index a list of all property values and
paths. The property values would be used to check for duplicates, while the paths will be
used for reporting.
> As the IndexStoreStrategy interface and its implementations do not support such access,
we need to provide it.

This message was sent by Atlassian JIRA

View raw message