Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 54151 invoked from network); 21 Dec 2006 04:28:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Dec 2006 04:28:45 -0000 Received: (qmail 16587 invoked by uid 500); 21 Dec 2006 04:28:50 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 16542 invoked by uid 500); 21 Dec 2006 04:28:50 -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 16531 invoked by uid 99); 21 Dec 2006 04:28:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Dec 2006 20:28:50 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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; Wed, 20 Dec 2006 20:28:42 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 50FCC714295 for ; Wed, 20 Dec 2006 20:28:22 -0800 (PST) Message-ID: <25796100.1166675302329.JavaMail.jira@brutus> Date: Wed, 20 Dec 2006 20:28:22 -0800 (PST) From: "Doron Cohen (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-756) Maintain norms in a single file .nrm In-Reply-To: <229404.1166667081103.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 [ http://issues.apache.org/jira/browse/LUCENE-756?page=all ] Doron Cohen updated LUCENE-756: ------------------------------- Attachment: nrm.patch.txt Replacing the patch file (prev file was garbage - "svn stat" instead of "svn diff"). Few words on how this patch works: - .nrm file was added. - addDocument (DocumentWriter) still writes each norm to a separate file - but that's in memory, - at merge, all norms are written to a single file. - CFS now also maintains all norms in a single file. - IndexWriter merge-decision now considers hasSeparateNorms() not only for CFS but also for non compound. - SegmentReader.openNorms() still creates ready-to-use/load Norm objects (which would read the norms only when needed). But the Norm object is now assigned a normSeek value, which is nonzero if the norm file is .nrm. - existing indexes, prior to this change, are managed the same way that segments resulted of addDocument are managed. Tests: - I verified that also the (contrib) tests for FieldNormModifier and LengthNormModofier are working. Remaining: - I might add a test. - more benchmarking? - update fileFormat document. > Maintain norms in a single file .nrm > ------------------------------------ > > Key: LUCENE-756 > URL: http://issues.apache.org/jira/browse/LUCENE-756 > Project: Lucene - Java > Issue Type: Improvement > Components: Index > Reporter: Doron Cohen > Assigned To: Doron Cohen > Priority: Minor > Attachments: nrm.patch.txt > > > Non-compound indexes are ~10% faster at indexing, and perform 50% IO activity comparing to compound indexes. But their file descriptors foot print is much higher. > By maintaining all field norms in a single .nrm file, we can bound the number of files used by non compound indexes, and possibly allow more applications to use this format. > More details on the motivation for this in: http://www.nabble.com/potential-indexing-perormance-improvement-for-compound-index---cut-IO---have-more-files-though-tf2826909.html (in particular http://www.nabble.com/Re%3A-potential-indexing-perormance-improvement-for-compound-index---cut-IO---have-more-files-though-p7910403.html). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org