From java-dev-return-46449-apmail-lucene-java-dev-archive=lucene.apache.org@lucene.apache.org Sat Feb 06 22:17:51 2010 Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 93260 invoked from network); 6 Feb 2010 22:17:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Feb 2010 22:17:51 -0000 Received: (qmail 87761 invoked by uid 500); 6 Feb 2010 22:17:50 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 87648 invoked by uid 500); 6 Feb 2010 22:17: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 87636 invoked by uid 99); 6 Feb 2010 22:17:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Feb 2010 22:17:49 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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; Sat, 06 Feb 2010 22:17:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AB99A234C4A8 for ; Sat, 6 Feb 2010 14:17:28 -0800 (PST) Message-ID: <1208579578.100771265494648701.JavaMail.jira@brutus.apache.org> Date: Sat, 6 Feb 2010 22:17:28 +0000 (UTC) From: "Uwe Schindler (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-2252) stored field retrieve slow In-Reply-To: <1045149059.99461265487508284.JavaMail.jira@brutus.apache.org> 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-2252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12830582#action_12830582 ] Uwe Schindler commented on LUCENE-2252: --------------------------------------- FileSwitchDirectory comes into my mind. Just delegate the *.fdx extension into RAMDirectory. On instantiation of the dir, create the copy during wrapping with FileSwitchDir. > stored field retrieve slow > -------------------------- > > Key: LUCENE-2252 > URL: https://issues.apache.org/jira/browse/LUCENE-2252 > Project: Lucene - Java > Issue Type: Improvement > Components: Store > Affects Versions: 3.0 > Reporter: John Wang > > IndexReader.document() on a stored field is rather slow. Did a simple multi-threaded test and profiled it: > 40+% time is spent in getting the offset from the index file > 30+% time is spent in reading the count (e.g. number of fields to load) > Although I ran it on my lap top where the disk isn't that great, but still seems to be much room in improvement, e.g. load field index file into memory (for a 5M doc index, the extra memory footprint is 20MB, peanuts comparing to other stuff being loaded) > A related note, are there plans to have custom segments as part of flexible indexing feature? -- 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