Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 11846 invoked from network); 22 Sep 2009 04:56:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Sep 2009 04:56:41 -0000 Received: (qmail 92393 invoked by uid 500); 22 Sep 2009 04:56:40 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 92332 invoked by uid 500); 22 Sep 2009 04:56:40 -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 92315 invoked by uid 99); 22 Sep 2009 04:56:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Sep 2009 04:56:39 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of john.wang@gmail.com designates 209.85.132.247 as permitted sender) Received: from [209.85.132.247] (HELO an-out-0708.google.com) (209.85.132.247) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Sep 2009 04:56:32 +0000 Received: by an-out-0708.google.com with SMTP id b2so1521762ana.5 for ; Mon, 21 Sep 2009 21:56:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=h4ZKXSzogDt3/tNfFiOfJQJvTIvFcvaj3Xh0W68lUj8=; b=lInfQmFA3Vd3sfF6b66RTqseCFwJuEZMTHBPy6oX6VyvMgCwSVjOnLwzpM+TmoWPTk O7yATN73rTD52mj0t5taWUb4frK6wLsSkrfhpSzFxryPwPIbUjodQHzKDcy4yYfl4JaR 73E0urEVMzRTFRHh2GGfsfaUG+WOgJTfLdCFY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=j9M7WBzhfjGGVkcNYEXxhX2Wkz1pyuexXQjllrJpuEescFBsaoFsBUDaotY4bpD3eF RuziVS/O5W+OU/gFnVVeZyk3wUS1TZ1TxnMxU5JPfqxwwUSUoN4ViFigd04rWk/ZN/gl 7D3A2dVo8bAo0A2yYIKp0XTEhJJmjhF2OTIAo= MIME-Version: 1.0 Received: by 10.101.196.13 with SMTP id y13mr506118anp.148.1253595371096; Mon, 21 Sep 2009 21:56:11 -0700 (PDT) Date: Tue, 22 Sep 2009 12:56:11 +0800 Message-ID: <8837fb770909212156s13645f84tbee15ee3bd2d5aef@mail.gmail.com> Subject: 2.9 NRT w.r.t. sorting and field cache From: John Wang To: java-dev@lucene.apache.org, java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=0016e68ee0b5c94cc30474236aca X-Virus-Checked: Checked by ClamAV on apache.org --0016e68ee0b5c94cc30474236aca Content-Type: text/plain; charset=ISO-8859-1 Looking at the code, seems there is a disconnect between how/when field cache is loaded when IndexWriter.getReader() is called. Is FieldCache updated? Otherwise, are we reloading FieldCache for each reader instance? Seems for operations that lazy loads field cache, e.g. sorting, this has a significant performance issue. Please advise. Thanks -John --0016e68ee0b5c94cc30474236aca Content-Type: text/html; charset=ISO-8859-1 Looking at the code, seems there is a disconnect between how/when field cache is loaded when IndexWriter.getReader() is called.

Is FieldCache updated? Otherwise, are we reloading FieldCache for each reader instance?

Seems for operations that lazy loads field cache, e.g. sorting, this has a significant performance issue.

Please advise.

Thanks

-John

--0016e68ee0b5c94cc30474236aca--