Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 19074 invoked from network); 5 Apr 2006 15:05:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Apr 2006 15:05:29 -0000 Received: (qmail 96717 invoked by uid 500); 5 Apr 2006 15:05:27 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 96684 invoked by uid 500); 5 Apr 2006 15:05:26 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 96675 invoked by uid 99); 5 Apr 2006 15:05:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Apr 2006 08:05:26 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=FORGED_HOTMAIL_RCVD2,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Apr 2006 08:05:25 -0700 Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FR9ZA-0000HK-VC for dev@jackrabbit.apache.org; Wed, 05 Apr 2006 08:05:05 -0700 Message-ID: <3766515.post@talk.nabble.com> Date: Wed, 5 Apr 2006 08:05:04 -0700 (PDT) From: thomasg To: dev@jackrabbit.apache.org Subject: Is doc addition / indexing synchronous or asynchronous? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: thomasgascoigne@hotmail.com X-Nabble-From: thomasg X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I am wondering how Jackrabbit handles document additions and indexing. I am adding documents (.txt, .doc, .pdf) to a repository using nt:resource nodes. I assume that calling session.save() causes new documents to be added to the data storage and then indexed by Lucene. Is addition / indexing synchronous or asynchronous, i.e, does addition and indexing have to complete before the method returns, or are these tasks handed to another thread? When debugging tests I seem to get quite long delays on session.save() with large documents (around 1 min for 50MB). Also can the synch / asynch behaviour be modified? Any enlightenment in this area would be appreciated, as would any pointers to useful documentation in these areas. We are trying to determine any delay perceived by users when they add a new document to the dms. Thanks very much, Thomas -- View this message in context: http://www.nabble.com/Is-doc-addition-indexing-synchronous-or-asynchronous--t1400122.html#a3766515 Sent from the Jackrabbit - Dev forum at Nabble.com.