Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 60581 invoked from network); 5 Feb 2008 15:02:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Feb 2008 15:02:24 -0000 Received: (qmail 75100 invoked by uid 500); 5 Feb 2008 15:02:10 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 75061 invoked by uid 500); 5 Feb 2008 15:02:10 -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 75050 invoked by uid 99); 5 Feb 2008 15:02:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2008 07:02:10 -0800 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 64.233.166.180 as permitted sender) Received: from [64.233.166.180] (HELO py-out-1112.google.com) (64.233.166.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2008 15:01:41 +0000 Received: by py-out-1112.google.com with SMTP id a73so3078767pye.9 for ; Tue, 05 Feb 2008 07:01:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=DuttvAYsiHmwbGyQovyuA79antN1/bCq14fsZK6Sucw=; b=B4Um17ZUipRIl7y/88JpuI5IOPRkPihNSS6VDFni9iAd3V2HhW0VeTeVfxBVnZVQ+KHVGhuqK1sU4vqyaLKozplNUAuwJPmQYrvlmqzZzXBLB3uJSBeeQ5B69X7nobgrhJfUahbIS/BSnV01fQEbSrotx9ciC8PXoAimM6+WwYk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=PPWuef7pBV5Cacp+IfIA7WJ7meY7RiEbbfeQqiX311/OtxmVvk0DGsvDpMCMLw3cz44BJhdJB4wsHBweEHS+c0NjYipVxLpR1cNUySR2krsKhwMIH7UKi9KxP6/4IeGonO7VR4E8/wLqyI2/Yhe4vkSVjdD4KJRh852He7A1k90= Received: by 10.65.213.4 with SMTP id p4mr15844554qbq.7.1202223704508; Tue, 05 Feb 2008 07:01:44 -0800 (PST) Received: from ?192.168.1.118? ( [69.124.234.183]) by mx.google.com with ESMTPS id f18sm6836745qba.14.2008.02.05.07.01.42 (version=SSLv3 cipher=RC4-MD5); Tue, 05 Feb 2008 07:01:43 -0800 (PST) Message-ID: <47A87A50.1080709@gmail.com> Date: Tue, 05 Feb 2008 10:01:36 -0500 From: Mark Miller User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Re: Concurrent Indexing + Searching References: <15234463.post@talk.nabble.com> <15255394.post@talk.nabble.com> <47A60308.4040300@gmail.com> <15262305.post@talk.nabble.com> <47A70844.8030806@gmail.com> <15288452.post@talk.nabble.com> <47A85527.6060207@gmail.com> <15289328.post@talk.nabble.com> In-Reply-To: <15289328.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org > Again, if the > indexerThreads are bombarding the writer continuously, then the moment, when > no indexer is accessing the writer, may never come. Thus, I invested some of > my time, and wrote my own code, to control the sleeping of indexerThreads. > I don't know how much of a concern this is. All you can really do is juggle the capabilities of Lucene, and Lucene was not designed to allow continuous writes to the database that are instantly available. That is one of the compromises of doing full text search over db. If you reopen the index in the face of constant write bombardment, it will already need to be reopened again immediately, and so on. You still need to consider the cost of reopening huge indexes...its not going to be fast enough to keep up with this kind of bombardment. I think you have to limit the use case. I suppose you could refresh the readers occasionally in a long line of Writer get/release bombardment, but Lucene is just not in a position to handle such an interactive index, and I don't think it will be too fruitful trying to force it. If you correctly batch load, this is not that big of a limitation. Updates generally come in two ways...random updates here and there or a batch of updates at once - neither of these cases will cause bombardment. - Mark --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org