Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 93399 invoked from network); 28 Sep 2010 14:40:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Sep 2010 14:40:53 -0000 Received: (qmail 83227 invoked by uid 500); 28 Sep 2010 14:40:52 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 82732 invoked by uid 500); 28 Sep 2010 14:40:49 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 82722 invoked by uid 99); 28 Sep 2010 14:40:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Sep 2010 14:40:48 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of yseeley@gmail.com designates 74.125.82.176 as permitted sender) Received: from [74.125.82.176] (HELO mail-wy0-f176.google.com) (74.125.82.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Sep 2010 14:40:42 +0000 Received: by wyb34 with SMTP id 34so7405401wyb.35 for ; Tue, 28 Sep 2010 07:40:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:reply-to:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; bh=UUj8X7DfY7uriE3d3PNB5l37mzZuBPSk3nw6jMmIFa0=; b=MfkLzBYGUVfPhPz9ZrjYUlq7i6LHLNifNwftxfyjGWGUmgi5yCy8uT6IFcEUDhjYck T4ICJI7RuHZW7f43lPXQx29UwHSa0tvShj2Fi/vjw7V8VwzmOOxErWiK4GpzdIhX+1G2 d0/jG9yoCjIrI7QzyjqinfxbOBa5gXExuXKYQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=bYzaZESdr+veCpjsVSrQoNBkLaleyXjMg9n0iS+T/DF0XBLOBZ5hjyotm5ZewWkP0k Xl3ATjUadKhXsxdZIVxDLqY4F6DkbcH6VP6Ar5l3p59rn7BVlQy/bRqm1ZOngrMzv0Cf kS9lcznCbwv1FvcvOtpGkIgis5nTDimqmZ90k= MIME-Version: 1.0 Received: by 10.227.133.139 with SMTP id f11mr6061wbt.132.1285684821730; Tue, 28 Sep 2010 07:40:21 -0700 (PDT) Sender: yseeley@gmail.com Reply-To: yonik@lucidimagination.com Received: by 10.216.48.11 with HTTP; Tue, 28 Sep 2010 07:40:21 -0700 (PDT) In-Reply-To: <35030446-B726-4141-AF52-FE641C121E48@cominvent.com> References: <35030446-B726-4141-AF52-FE641C121E48@cominvent.com> Date: Tue, 28 Sep 2010 10:40:21 -0400 X-Google-Sender-Auth: utS-aRiuQjjafOWopl23QJPXVJc Message-ID: Subject: Re: Indexing and threads From: Yonik Seeley To: dev@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Sep 28, 2010 at 9:32 AM, Jan H=F8ydahl / Cominvent wrote: > How are threads being used when indexing? > > Let's say document A and B are ingested in parallell to XMLUpdateRequestH= andler in two separate threads. > How far down the chain are the processing of these done in the two separa= te threads? All the way to the Lucene IndexWriter, where they are also processed in parallel. > Is the full UpdateRequestChain run in the same thread as the incoming req= uest? Yes. > Is analysis done in the request thread or in a single indexing thread? Request thread. > Are ADDs added to the same "commit queue", and then from COMMIT and down = to Lucene segment building everything is single-threaded? While a commit is happening in Solr, adds are blocked. This is historical - in the past, Lucene didn't really handle that type of concurrency for you, and so Solr did. We need to improve this at some point... -Yonik http://lucenerevolution.org Lucene/Solr Conference, Boston Oct 7-8 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org