You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2015/04/27 11:46:39 UTC
[jira] [Created] (OAK-2814) Refactor the optimize logic regarding
path include and exclude to avoid duplication
Chetan Mehrotra created OAK-2814:
------------------------------------
Summary: Refactor the optimize logic regarding path include and exclude to avoid duplication
Key: OAK-2814
URL: https://issues.apache.org/jira/browse/OAK-2814
Project: Jackrabbit Oak
Issue Type: Improvement
Components: core
Reporter: Chetan Mehrotra
Priority: Minor
Fix For: 1.4
{{ObservationManagerImpl}} has a optimize method which process the list of includes and excludes and removes redundant clauses. That logic is now also being used in index filtering (OAK-2599) and is getting duplicated.
Going forward we need to refactor this logic so that both places can use it without copying. Possibly making it part of PathUtils
[~mduerig] Also suggested to further optimize
bq. Also PathFilter#optimise could be further optimised by removing entries that subsume each other (e.g. including /a/b, /a is the same as including (/a.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)