jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Guggisberg <stefan.guggisb...@gmail.com>
Subject Re: [jr3] Synchronized sessions
Date Thu, 25 Feb 2010 08:12:15 GMT
On Wed, Feb 24, 2010 at 7:34 PM, Thomas Müller <thomas.mueller@day.com> wrote:
> Currently, Jackrabbit sessions are somewhat synchronized, but not
> completely (for example it's still possible to concurrently read and
> update data). There were some problems because of that, and probably
> there still are.
>
> I believe it's better to synchronize all methods in the session (on
> the session object). This includes methods on nodes and properties and
> so on. If this does turn out to be a performance problem, we can
> remove synchronization where required (and where it can safely be
> removed) or change the implementation (use immutable objects or safe
> data structures).
>
> This is more conservative, but I think the impact on performance will
> be minimal. Of course performance is important, however I think data
> consistency is more important than the possible gain of a few percents
> of (read-) performance.

+1

cheers
stefan

>
> Regards,
> Thomas
>

Mime
View raw message