Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 57418 invoked from network); 15 Nov 2009 00:04:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Nov 2009 00:04:21 -0000 Received: (qmail 57706 invoked by uid 500); 15 Nov 2009 00:04:19 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 57608 invoked by uid 500); 15 Nov 2009 00:04:19 -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 57598 invoked by uid 99); 15 Nov 2009 00:04:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Nov 2009 00:04:19 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of simon.willnauer@googlemail.com designates 209.85.220.228 as permitted sender) Received: from [209.85.220.228] (HELO mail-fx0-f228.google.com) (209.85.220.228) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Nov 2009 00:04:08 +0000 Received: by fxm28 with SMTP id 28so4742022fxm.5 for ; Sat, 14 Nov 2009 16:03:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=V99S5XDESAOJux1Cq6IVGENRJLUI+r5R62VPmxXX8Zc=; b=hibKXe9Jyp1iDrKzluwOBexhHeC9YIwz2VnMPO2rZXnHPKhGw/a+qQbmKXCcY5lR4k GQEc/mDs4ftM3Kpj2qeUWujSuCpb5jd9RsbIZmBsb9AL/myAiGGiG2LJbHh5n9/wJBzB P5KyKcC/Unvk4/aaaIzRLsI31fjw0PyQTEyJE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type; b=HWS0V+tqSF+85SjgVx9+z0/MS7i1nZ/HS7S1q10JwwetrT1m3O/Z4FeEoJNRTdCGEq PnVBorEAeO5/e/GJoxD1ADVGoJUQr/u5uhEePPpSj4s2IvhG0AFgstNuv2wh3FEAO02R VPOgcBiJ7kUlnmB6yFrt9dAIiVKHFAHQKsW6U= MIME-Version: 1.0 Received: by 10.239.145.163 with SMTP id s35mr600965hba.42.1258243428070; Sat, 14 Nov 2009 16:03:48 -0800 (PST) Reply-To: simon.willnauer@gmail.com In-Reply-To: <359a92830911141558i52364c0cn8d6c80861e3c00d2@mail.gmail.com> References: <359a92830911141558i52364c0cn8d6c80861e3c00d2@mail.gmail.com> Date: Sun, 15 Nov 2009 01:03:48 +0100 Message-ID: Subject: Re: Max number of open IndexWriters From: Simon Willnauer To: java-user@lucene.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org In general you should only use one single writer and use it with multiple threads. IndexWriter is optimized for concurrency and fully thread-safe. Is that what you trying to achieve? otherwise I would 100% agree with eric not knowing of a use-case. simon On Sun, Nov 15, 2009 at 12:58 AM, Erick Erickson wrote: > Hmmm, why would you want to do this? What problem are > you trying to address with so many readers? > > I ask because I'm having a hard time thinking of a reasonable > use-case. > > Best > Erick > > On Sat, Nov 14, 2009 at 11:35 AM, Hrishikesh Agashe < > hrishikesh_agashe@persistent.co.in> wrote: > >> Is there any limit on how many IndexWriter can I keep open at same time? >> What does it depends on (RAM?) Can I keep 100 or 200 IndexWriters open in >> say HashMap and use them as I process documents? >> >> >> DISCLAIMER >> ========== >> This e-mail may contain privileged and confidential information which is >> the property of Persistent Systems Ltd. It is intended only for the use of >> the individual or entity to which it is addressed. If you are not the >> intended recipient, you are not authorized to read, retain, copy, print, >> distribute or use this message. If you have received this communication in >> error, please notify the sender and delete all copies of this message. >> Persistent Systems Ltd. does not accept any liability for virus infected >> mails. >> > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org