jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig <mic...@gmail.com>
Subject Re: enter() method for JCR implementation classes
Date Fri, 08 Mar 2013 13:57:55 GMT


On 8.3.13 13:41, Jukka Zitting wrote:
> Hi,
>
> On Fri, Mar 8, 2013 at 3:32 PM, Michael Dürig <mduerig@apache.org> wrote:
>> 2) Synchronize SessionDelegete.perform(), which effectively serializes *all*
>> JCR calls on a single session.
>
> As mentioned earlier, this is what I'd do. A client for which this is
> a problem can always open new sessions for improved concurrency.

Agreed. See https://issues.apache.org/jira/browse/OAK-687

Instead of a full blown synchronized block, we might be able to use a 
read/write lock and only do full locking when a refresh becomes necessary.

Michael

>
> BR,
>
> Jukka Zitting
>

Mime
View raw message