[
https://issues.apache.org/jira/browse/OAK-4112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15261905#comment-15261905
]
Tomek Rękawek edited comment on OAK-4112 at 5/4/16 9:50 AM:
------------------------------------------------------------
Fixed for trunk in [r1741403|https://svn.apache.org/r1741403],
[r1741407|http://svn.apache.org/r1741407],
[r1741422|https://svn.apache.org/r1741422],
[r1741633|https://svn.apache.org/r1741633],
[r1742240|https://svn.apache.org/r1742240].
was (Author: tomek.rekawek):
Fixed for trunk in [r1741403|https://svn.apache.org/r1741403],
[r1741407|http://svn.apache.org/r1741407],
[r1741422|https://svn.apache.org/r1741422],
[r1741633|https://svn.apache.org/r1741633].
> Replace the query exclusive lock with a cache tracker
> -----------------------------------------------------
>
> Key: OAK-4112
> URL: https://issues.apache.org/jira/browse/OAK-4112
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: documentmk, mongomk
> Reporter: Tomek Rękawek
> Assignee: Tomek Rękawek
> Labels: performance
> Fix For: 1.6, 1.5.2
>
> Attachments: OAK-4112-1.patch, OAK-4112-2.patch, OAK-4112-3.patch,
> OAK-4112-4.patch, OAK-4112-putifnewer.patch, OAK-4112.patch
>
>
> The {{MongoDocumentStore#query()}} method uses an expensive
> {{TreeLock#acquireExclusive}} method, introduced in OAK-1897 to avoid caching
> outdated documents.
> It should be possible to avoid acquiring the exclusive lock, by tracking the
> cache changes that occurs during the Mongo find() operation. When the find()
> is done, we can update the cache with the received documents if they haven't
> been invalidated in the meantime.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)