Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E34DE11AE4 for ; Tue, 3 Jun 2014 10:10:06 +0000 (UTC) Received: (qmail 30412 invoked by uid 500); 3 Jun 2014 10:10:05 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 30351 invoked by uid 500); 3 Jun 2014 10:10:05 -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 30340 invoked by uid 99); 3 Jun 2014 10:10:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2014 10:10:05 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of vfunstein@gmail.com designates 74.125.82.45 as permitted sender) Received: from [74.125.82.45] (HELO mail-wg0-f45.google.com) (74.125.82.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2014 10:10:02 +0000 Received: by mail-wg0-f45.google.com with SMTP id m15so6370225wgh.4 for ; Tue, 03 Jun 2014 03:09:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=AP8FxlDUAmem1vNZ2jAoCVe2kjMuXzluzOnyPDDeF4c=; b=BIbNOdHGCBWaCBe7bp7Nm5aghe3HtHKFYnIVQed9dTbFqli5ty/fNrKoc+iohRRzyL WC6vcwE7NjBL0T6sd/DyM+Q7IJyAl+zb7FVm8sLdegGlrXFze/W8fFD73zNc4drWQFC0 yuo6nQ3f0eOBkngTA2Z2aQ/4jJBn2MMwEsl+FnK5TuvdU+Iek13jlM/UBg0YdRAp4KpI kOL9jeUXoTI0m0wx9YEl33F4o2NW/1h81Rc3tW1XqAMeL0DBXk7SS0uvFYQoH7yeEp0x 104KxDemyuqcRTZyPnjmfE226jDyHqKWSVozbs6nhDjSPQORhxmBRyoTKczlH2mQ4VFp nk0w== MIME-Version: 1.0 X-Received: by 10.194.161.168 with SMTP id xt8mr59336015wjb.35.1401790178105; Tue, 03 Jun 2014 03:09:38 -0700 (PDT) Received: by 10.194.62.206 with HTTP; Tue, 3 Jun 2014 03:09:38 -0700 (PDT) In-Reply-To: <538D9BAC.7030501@mailarchiva.com> References: <01AFE0FB733B9944974A82A09CEB7A0309C81ABB21@mail3.imedx.com> <1400570841.2420.155.camel@te-prime> <01AFE0FB733B9944974A82A09CEB7A0309C835D126@mail3.imedx.com> <1400578244.2420.170.camel@te-prime> <01AFE0FB733B9944974A82A09CEB7A0309C835D16A@mail3.imedx.com> <1400581087.2420.182.camel@te-prime> <01AFE0FB733B9944974A82A09CEB7A0309C835D36D@mail3.imedx.com> <1401153243448-4138215.post@n3.nabble.com> <003301cf7974$7a200600$6e601200$@gmx.de> <01AFE0FB733B9944974A82A09CEB7A0309C881E6CF@mail3.imedx.com> <538C1F0F.3010300@mailarchiva.com> <538C5174.7040101@mailarchiva.com> <538D962E.2020809@mailarchiva.com> <538D99A4.1060605@mailarchiva.com> <538D9BAC.7030501@mailarchiva.com> Date: Tue, 3 Jun 2014 03:09:38 -0700 Message-ID: Subject: Re: search performance From: Vitaly Funstein To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=089e01419c6a9d9f3604faebb5a7 X-Virus-Checked: Checked by ClamAV on apache.org --089e01419c6a9d9f3604faebb5a7 Content-Type: text/plain; charset=UTF-8 A couple of questions. 1. What are you trying to achieve by setting the current thread's priority to max possible value? Is it grabbing as much CPU time as possible? In my experience, mucking with thread priorities like this is at best futile, and at worst quite detrimental to responsiveness and overall performance of the system as a whole. I would remove that line. 2. This seems suspicious: if (getPagination()) { max = start + length; } else { max = getMaxResults(); } If start is at 100M, and length is 1000 - what do you think Lucene will try and do when you pass this max to the collector? On Tue, Jun 3, 2014 at 2:55 AM, Jamie wrote: > FYI: We are also using a multireader to search over multiple index readers. > > Search under a million documents yields good response times. When you get > into the 60M territory, search slows to a crawl. > > On 2014/06/03, 11:47 AM, Jamie wrote: > >> Sure... see below: >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > --089e01419c6a9d9f3604faebb5a7--