Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 49758 invoked from network); 3 Aug 2007 19:47:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Aug 2007 19:47:19 -0000 Received: (qmail 4265 invoked by uid 500); 3 Aug 2007 19:47:13 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 4223 invoked by uid 500); 3 Aug 2007 19:47:13 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 4206 invoked by uid 99); 3 Aug 2007 19:47:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Aug 2007 12:47:13 -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: domain of markrmiller@gmail.com designates 66.249.82.232 as permitted sender) Received: from [66.249.82.232] (HELO wx-out-0506.google.com) (66.249.82.232) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Aug 2007 19:47:09 +0000 Received: by wx-out-0506.google.com with SMTP id i28so652016wxd for ; Fri, 03 Aug 2007 12:46:48 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=h4HosTgPBcjVa2CuS4N5EG2m1d8OQesdpxCZh6sIx54teK7TWNi5wIIm0Js4qQX4eC7zqsjoeoUDs92EPgk1vvJXlQvef3Bb3GnAEBojxXCavqldjO/zAYDpaWK2o2S/nncZQF18qmCjcHm0AVjK96j/+1LFETUue1w/4OdQYpA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=rKJhkokD/ma7TSzrK8AG+Msp6A0fcbwWJDWPCrZHOrgzbHZ8e21FW8t47RQy2xlPQV0MeQ/c5H3kJuyksx/ooxIzjGvj0Dr4nt4BILs68rWObyczrl6swxl36tHYfb2vDKOXYkiXXu2gvVrtNyQqnndXAjWhuzeooEMBXPCbDFs= Received: by 10.90.97.11 with SMTP id u11mr3530191agb.1186170408657; Fri, 03 Aug 2007 12:46:48 -0700 (PDT) Received: from ?192.168.1.105? ( [216.66.114.204]) by mx.google.com with ESMTPS id 6sm3813651wrh.2007.08.03.12.46.46 (version=SSLv3 cipher=RC4-MD5); Fri, 03 Aug 2007 12:46:47 -0700 (PDT) Message-ID: <46B385EC.3010204@gmail.com> Date: Fri, 03 Aug 2007 15:45:48 -0400 From: Mark Miller User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Re: Performance improvements using writer.delete vs reader.delete References: <46B30322.7080104@gmail.com> <137CFCB5-FB31-460E-9AE1-850ED6D74885@gmail.com> In-Reply-To: <137CFCB5-FB31-460E-9AE1-850ED6D74885@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Heh. I suppose I'll defer to your judgment. In my mind, the simple system to make is to just buffer the adds, buffer the deletes - later apply the adds, apply the deletes (or the reverse). I am sure something in Solr would have a more sophisticated process, but my guess was about what the new Lucene user would throw together. But again, I'll defer to your judgment anytime. - Mark Mike Klaas wrote: > > On 3-Aug-07, at 3:27 AM, Mark Miller wrote: > >> Also, IndexWriter probably buffers better than you would. If you >> buffer a delete with IndexWriter and then add a document that would >> be removed by that delete right after, when the buffered deletes are >> flushed, your latest doc will not be removed. Its unlikely your own >> buffer system would work so well. > > Is it? ISTM that any sane buffering system would account for that case. > > -Mike > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org