Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 23457 invoked from network); 28 Jun 2006 16:31:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Jun 2006 16:31:37 -0000 Received: (qmail 87525 invoked by uid 500); 28 Jun 2006 16:31:36 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 87511 invoked by uid 500); 28 Jun 2006 16:31:36 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 87488 invoked by uid 99); 28 Jun 2006 16:31:35 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Jun 2006 09:31:35 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of edgarpoce@gmail.com designates 66.249.92.172 as permitted sender) Received: from [66.249.92.172] (HELO ug-out-1314.google.com) (66.249.92.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Jun 2006 09:31:35 -0700 Received: by ug-out-1314.google.com with SMTP id a2so3194923ugf for ; Wed, 28 Jun 2006 09:31:13 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=R+fb0snBNcLhGm05z0pqbiZsOt6le1/i2fe9I4XhXRpzCo/JzBLSYDTYiBDIvMNlPK8/D9phyB2y+/ySX6xMHKPChRdlkYaUycRZZsDpx1HYU0ee6LckGY2udTG71Q8y9P02SiczXsknA9y9/Tsumak0BZoQ3JRhZVuNoBsgeds= Received: by 10.67.101.10 with SMTP id d10mr911810ugm; Wed, 28 Jun 2006 09:31:06 -0700 (PDT) Received: by 10.67.30.15 with HTTP; Wed, 28 Jun 2006 09:31:06 -0700 (PDT) Message-ID: <8a83c96b0606280931k20d88e9cg501420327ca56742@mail.gmail.com> Date: Wed, 28 Jun 2006 13:31:06 -0300 From: "Edgar Poce" To: users@jackrabbit.apache.org Subject: Re: Newbie Question - Performance In-Reply-To: <3ed4376e0606280917v5a664491n887c86742c1aa746@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3ed4376e0606280917v5a664491n887c86742c1aa746@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, On 6/28/06, Vijay Pandey wrote: > --------------------------------------------------------------- > it's a good practice to share a single anonymous session for read only > access if possible, it would reduce the time that write actions will take. > ---------------------------------------------------------------- > it's not thread safe, I think you should pool the connections somehow. btw, I think that comment is out of date, I'll remove it. AFAIK it's been a while since transient items are shared among read only sessions. br, edgar > Does it mean to say that 'session' is thread safe at method level for read > only operations , or do we have to synchronize the call on session? or do > you think should we have a pool of read only sessions ? > > Thanks > Vijay > >