Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 63646 invoked from network); 25 Oct 2007 18:17:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Oct 2007 18:17:16 -0000 Received: (qmail 37311 invoked by uid 500); 25 Oct 2007 18:17:01 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 37266 invoked by uid 500); 25 Oct 2007 18:17:01 -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 37255 invoked by uid 99); 25 Oct 2007 18:17:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2007 11:17:01 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2007 20:17:55 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D7DEA714240 for ; Thu, 25 Oct 2007 11:16:50 -0700 (PDT) Message-ID: <893697.1193336210881.JavaMail.jira@brutus> Date: Thu, 25 Oct 2007 11:16:50 -0700 (PDT) From: "Yonik Seeley (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-994) Change defaults in IndexWriter to maximize "out of the box" performance In-Reply-To: <3880706.1189506936487.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12537678 ] Yonik Seeley commented on LUCENE-994: ------------------------------------- Yes, I guess one could consider it a minor breakage. maxBufferedDocs previously ensured that changes were flushed every "n" docs. They were flushed in a visible way, and I don't recall anything saying that one shouldn't open a reader before the writer was closed. > Change defaults in IndexWriter to maximize "out of the box" performance > ----------------------------------------------------------------------- > > Key: LUCENE-994 > URL: https://issues.apache.org/jira/browse/LUCENE-994 > Project: Lucene - Java > Issue Type: Improvement > Components: Index > Affects Versions: 2.3 > Reporter: Michael McCandless > Assignee: Michael McCandless > Priority: Minor > Fix For: 2.3 > > Attachments: LUCENE-994.patch, writerinfo.zip > > > This is follow-through from LUCENE-845, LUCENE-847 and LUCENE-870; > I'll commit this once those three are committed. > Out of the box performance of IndexWriter is maximized when flushing > by RAM instead of a fixed document count (the default today) because > documents can vary greatly in size. > Likewise, merging performance should be faster when merging by net > segment size since, to minimize the net IO cost of merging segments > over time, you want to merge segments of equal byte size. > Finally, ConcurrentMergeScheduler improves indexing speed > substantially (25% in a simple initial test in LUCENE-870) because it > runs the merges in the backround and doesn't block > add/update/deleteDocument calls. Most machines have concurrency > between CPU and IO and so it makes sense to default to this > MergeScheduler. > Note that these changes will break users of ParallelReader because the > parallel indices will no longer have matching docIDs. Such users need > to switch IndexWriter back to flushing by doc count, and switch the > MergePolicy back to LogDocMergePolicy. It's likely also necessary to > switch the MergeScheduler back to SerialMergeScheduler to ensure > deterministic docID assignment. > I think the combination of these three default changes, plus other > performance improvements for indexing (LUCENE-966, LUCENE-843, > LUCENE-963, LUCENE-969, LUCENE-871, etc.) should make for some sizable > performance gains Lucene 2.3! -- 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