[
https://issues.apache.org/jira/browse/OAK-5989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marcel Reutegger resolved OAK-5989.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.7.0
Implemented in trunk: http://svn.apache.org/r1792760
The partial index is only created when MongoDB is 3.2 or newer. The fallback is
the sparse index on _deletedOnce as created by Oak 1.6 and earlier.
> Create a partial index on _deletedOnce instead of sparse index
> --------------------------------------------------------------
>
> Key: OAK-5989
> URL: https://issues.apache.org/jira/browse/OAK-5989
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: mongomk
> Reporter: Chetan Mehrotra
> Assignee: Marcel Reutegger
> Fix For: 1.7.0, 1.8
>
>
> Currently MongoDocmentStore creates a sparse index on {{_deletedOnce}}. As
> discussed
> [here|https://issues.apache.org/jira/browse/OAK-3070?focusedCommentId=15902888&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15902888]
> it would better to create a partial Index [1].
> The criteria would be _modified, _deletedOnce : true
> This should only be done if Mongo >= 3.2
> [1] https://docs.mongodb.com/manual/core/index-partial/#index-type-partial
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)