Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 67630 invoked from network); 6 Nov 2009 23:44:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Nov 2009 23:44:56 -0000 Received: (qmail 79159 invoked by uid 500); 6 Nov 2009 23:44:55 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 79069 invoked by uid 500); 6 Nov 2009 23:44:55 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 78961 invoked by uid 99); 6 Nov 2009 23:44:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Nov 2009 23:44:55 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Nov 2009 23:44:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 648EF234C045 for ; Fri, 6 Nov 2009 15:44:32 -0800 (PST) Message-ID: <155628358.1257551072397.JavaMail.jira@brutus> Date: Fri, 6 Nov 2009 23:44:32 +0000 (UTC) From: "Simon Willnauer (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-2041) Complete parallelizaton of ParallelMultiSearcher In-Reply-To: <1244729648.1257545312464.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-2041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12774492#action_12774492 ] Simon Willnauer commented on LUCENE-2041: ----------------------------------------- Hey Joey, good to see you coming up with patches, nice that you catch up on that TODO. You added support for parallel DocFreq which is good! Did you think about using an interface from the new concurrent utils instead of subclassing thread? I would like to see people using the new features which make code slightly more readable too. You would be able to simply throw the exception in the Callable#call() method and retrieve it once it has terminated. you could also use a Pooled Executor to run those threads so you don't have to spawn them each time you call docFreq on the multi searcher. one more thing, your patch is hard to read as you formated the source code. please try to do not format it - that would make it way easier to read and see what has been added / changed. > Complete parallelizaton of ParallelMultiSearcher > ------------------------------------------------ > > Key: LUCENE-2041 > URL: https://issues.apache.org/jira/browse/LUCENE-2041 > Project: Lucene - Java > Issue Type: Improvement > Components: Search > Affects Versions: 2.9 > Reporter: Joey Surls > Priority: Minor > Fix For: 3.0 > > Attachments: LUCENE-2041.patch > > Original Estimate: 1h > Remaining Estimate: 1h > > ParallelMultiSearcher is parallel only for the method signatures of 'search'. > Part of a query process calls the method docFreq(). There was a TODO comment to parallelize this. Parallelizing this method actually increases the performance of a query on multiple indexes, especially remotely. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org