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 F0E4B3007 for ; Wed, 4 May 2011 12:22:23 +0000 (UTC) Received: (qmail 16321 invoked by uid 500); 4 May 2011 12:22:21 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 16257 invoked by uid 500); 4 May 2011 12:22:21 -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 16249 invoked by uid 99); 4 May 2011 12:22:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 May 2011 12:22:21 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [74.125.82.48] (HELO mail-ww0-f48.google.com) (74.125.82.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 May 2011 12:22:15 +0000 Received: by wwi18 with SMTP id 18so775596wwi.5 for ; Wed, 04 May 2011 05:21:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.197.201 with SMTP id el9mr1110022wbb.22.1304511714862; Wed, 04 May 2011 05:21:54 -0700 (PDT) Received: by 10.227.11.67 with HTTP; Wed, 4 May 2011 05:21:54 -0700 (PDT) In-Reply-To: References: <347589.95733.qm@web130102.mail.mud.yahoo.com> Date: Wed, 4 May 2011 08:21:54 -0400 Message-ID: Subject: Re: MultiPhraseQuery slowing down over time in Lucene 3.1 From: Michael McCandless To: java-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org OK, phew :) Thanks for bringing closure... Mike http://blog.mikemccandless.com On Wed, May 4, 2011 at 6:52 AM, Tomislav Poljak wrote: > Hi, > seems there is a custom impl of MultiPhraseQuery used in the system, > which uses (and maybe misuses) Lucene's MultiPhraseQuery that could be > the reason of slowdown. I've tried running sample Lucene's > MultiPhraseQuery in an infinite while loop printing out times for > every 1000 executions and couldn't reproduce slowdown. > > Thanks for provided assistance, > > Tomislav > > > 2011/5/3 Michael McCandless : >> On Tue, May 3, 2011 at 7:43 AM, Tomislav Poljak wrote: >>> Hi, >>> >>> 2011/5/3 Michael McCandless : >>>> I feel like we are back to Basic ;) >>>> >>>> If you keep running line 40 over and over on the same memory index, do >>>> you see a slowdown? >>> >>> Yes. I've tested running same query list (~3,5 k queries) on the same >>> MemoryIndex instance and after a while iterations get slower and >>> slower. Same thing happens when running queries on the same instance >>> of RAMDir based index holding only one doc. But, if I remove >>> MultiPhraseQuery type of queries from the query list then speed of >>> execution is the same, meaning execution time for other queries is >>> constant and it doesn't grow over time (as it would be expected). >>> >>> I've tried to run tests with the latest 3.1 branch as Uwe suggested >>> (checkout and built today) and slowdown is still present when >>> MultiPhraseQuery type of queries are included (not removed from the >>> query list). >> >> Spooky! >> >> Can you boil this into a contained test case? >> >> Mike >> >> http://blog.mikemccandless.com >> >> --------------------------------------------------------------------- >> 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 > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org