Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 31184 invoked from network); 27 Jun 2010 03:15:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Jun 2010 03:15:17 -0000 Received: (qmail 73082 invoked by uid 500); 27 Jun 2010 03:15:16 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 72422 invoked by uid 500); 27 Jun 2010 03:15:13 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 72404 invoked by uid 99); 27 Jun 2010 03:15:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Jun 2010 03:15:11 +0000 X-ASF-Spam-Status: No, hits=-1547.2 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Jun 2010 03:15:11 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5R3Eo4b001153 for ; Sun, 27 Jun 2010 03:14:50 GMT Message-ID: <20007227.77431277608490530.JavaMail.jira@thor> Date: Sat, 26 Jun 2010 23:14:50 -0400 (EDT) From: "Otis Gospodnetic (JIRA)" To: dev@lucene.apache.org Subject: [jira] Commented: (SOLR-1961) Use Lucene's Field Cache To Retrieve Stored Fields From Memory In-Reply-To: <16728438.69011276817483571.JavaMail.jira@thor> 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/SOLR-1961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12882909#action_12882909 ] Otis Gospodnetic commented on SOLR-1961: ---------------------------------------- This looks useful. The 2 new classes should have the standard ASL stuff at the very top. I also spotted a couple of TODOs from/for somebody named Stuart? > Use Lucene's Field Cache To Retrieve Stored Fields From Memory > -------------------------------------------------------------- > > Key: SOLR-1961 > URL: https://issues.apache.org/jira/browse/SOLR-1961 > Project: Solr > Issue Type: New Feature > Components: search > Affects Versions: 1.4 > Reporter: Stephen Bochinski > Attachments: patch.txt > > Original Estimate: 101.5h > Remaining Estimate: 101.5h > > This allows the user to configure which fields should be field cached in the schema.xml file by adding the following attribute: > fieldCached="true" > Enabling this on a field greatly decreases the time needed to retrieve stored fields. This works on fields containing Bytes, Strings, Integers, Longs, and Floats. Enabling field cache is applicable in many scenarios. For instance, if you have a bunch of text that is indexed and not stored and you only need to retrieve a string or number associated with a document. Its applicable in any case where there are many indexed fields and not too many stored fields being retrieved. The memory consumption is not very high compared to the performance gains field cache brings. > Memory consumption is governed by: Number of fields cached * Number of documents * 8 bytes per reference + > SUM(Number of unique values of the field * average length of term) * 2 (chars use 2 bytes) * String overhead (40 bytes) -- 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: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org