Return-Path: Delivered-To: apmail-lucene-lucy-dev-archive@minotaur.apache.org Received: (qmail 11489 invoked from network); 19 Mar 2009 01:19:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Mar 2009 01:19:55 -0000 Received: (qmail 34641 invoked by uid 500); 19 Mar 2009 00:53:15 -0000 Delivered-To: apmail-lucene-lucy-dev-archive@lucene.apache.org Received: (qmail 34582 invoked by uid 500); 19 Mar 2009 00:53:15 -0000 Mailing-List: contact lucy-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucy-dev@lucene.apache.org Delivered-To: mailing list lucy-dev@lucene.apache.org Received: (qmail 34571 invoked by uid 99); 19 Mar 2009 00:53:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Mar 2009 17:53:15 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [68.116.38.202] (HELO rectangular.com) (68.116.38.202) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Mar 2009 00:53:09 +0000 Received: from marvin by rectangular.com with local (Exim 4.63) (envelope-from ) id 1Lk6V6-0001sn-E8 for lucy-dev@lucene.apache.org; Wed, 18 Mar 2009 17:52:48 -0700 Date: Wed, 18 Mar 2009 17:52:48 -0700 To: lucy-dev@lucene.apache.org Subject: Re: real time updates Message-ID: <20090319005248.GA7203@rectangular.com> References: <20090315230128.GB23339@rectangular.com> <4B9436C9-4E76-4E11-9C55-0A15627B85FD@mikemccandless.com> <20090316004416.GC23339@rectangular.com> <9ac0c6aa0903160251j8a1451am64f51b704cf90b40@mail.gmail.com> <20090316172948.GA28202@rectangular.com> <9ac0c6aa0903161602icd8d9d8jcbf34b682481297@mail.gmail.com> <20090317003310.GA28694@rectangular.com> <9ac0c6aa0903170250t31e418f9pe6df3d072d9e4738@mail.gmail.com> <20090318195954.GA6047@rectangular.com> <9ac0c6aa0903181541i566c7e04ne86f3905b584aade@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9ac0c6aa0903181541i566c7e04ne86f3905b584aade@mail.gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) From: Marvin Humphrey X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Mar 18, 2009 at 06:41:25PM -0400, Michael McCandless wrote: > But at the end of the session you still insist on merging down to one > segment before closing right? So if my added docs all fit in RAM, > closing is fast, but if I go a bit over 1 RAM buffer's worth, then > closing is suddenly slower since it must merge those two runs before > closing? There's definitely a threshold effect. But the time is still small relative to the total run time of the indexer app. 10 or 15%, I think? > I think having a close that's unexpectedly slow is irksome. It's not unexpectedly slow. It's consistently slow. :D Since KS *always* performs merging of runs at the end, the cost doesn't come as a surprise. Moving all the hard work into a Prepare_Commit() method would solve this and would be a piece of cake to implement. Then we could have a Commit() which was always fast. Marvin Humphrey