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

Tomek Rękawek commented on OAK-3649:
------------------------------------

Regarding @reschke comment about removing TreeLocks - their advantage is that 
we can call {{acquireExclusively}} to lock the parent and all its children. The 
only place where this method is actually used is the 
{{MongoDocumentStore#queryInternal()}}.

Do you know why do we need to lock the parent document for the whole query, 
rather than locking single child documents after receiving the query result?

cc: [~mreutegg]

> Extract node document cache from Mongo and RDB document stores
> --------------------------------------------------------------
>
>                 Key: OAK-3649
>                 URL: https://issues.apache.org/jira/browse/OAK-3649
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: documentmk, mongomk, rdbmk
>            Reporter: Tomek Rękawek
>            Priority: Minor
>              Labels: candidate_oak_1_0, candidate_oak_1_2
>             Fix For: 1.3.12
>
>
> MongoDocumentStore and RDBDocumentStore contains copy & pasted methods 
> responsible for handling node document cache. Extract these into a new 
> NodeDocumentCache.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to