Return-Path: Delivered-To: apmail-lucene-solr-user-archive@locus.apache.org Received: (qmail 77279 invoked from network); 28 Jul 2008 21:30:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Jul 2008 21:30:27 -0000 Received: (qmail 37425 invoked by uid 500); 28 Jul 2008 21:30:24 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 37395 invoked by uid 500); 28 Jul 2008 21:30:24 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 37384 invoked by uid 99); 28 Jul 2008 21:30:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jul 2008 14:30:24 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jul 2008 21:29:29 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KNaHy-00027t-3E for solr-user@lucene.apache.org; Mon, 28 Jul 2008 14:29:54 -0700 Message-ID: <18699991.post@talk.nabble.com> Date: Mon, 28 Jul 2008 14:29:54 -0700 (PDT) From: Britske To: solr-user@lucene.apache.org Subject: Re: big discrepancy between elapsedtime and qtime although enableLazyFieldLoading= true In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: gbrits@gmail.com References: <18698590.post@talk.nabble.com> <18698909.post@talk.nabble.com> <18699550.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Thanks for clearing that up for me. I'm going to investigate some more... Yonik Seeley wrote: > > On Mon, Jul 28, 2008 at 4:53 PM, Britske wrote: >> Each query requests at most 20 stored fields. Why doesn't help >> lazyfieldloading in this situation? > > It's the disk seek that kills you... loading 1 byte or 1000 bytes per > document would be about the same speed. > >> Also, if I understand correctly, for optimal performance I need to have >> at >> least enough RAM to put the entire Index size in OS cache (thus RAM) + >> the >> amount of RAM that SOLR / Lucene consumes directly through the JVM? > > The normal usage is to just retrieve the stored fields for the top 10 > (or a window of 10 or 20) documents. Under this scenario, the > slowdown from not having all of the stored fields cached is usually > acceptable. Faster disks (seek time) can also help. > >> Luckily most of the normal queries return 10 documents each, which >> results >> in a discrepancy between total elapsed time and qTIme of about 15-30 ms. >> Doesn't this seem strange, since to me it would seem logical that the >> discrepancy would be at least 1/10th of fetching 100 documents. > > Yes, in general 1/10th the cost is what one would expect on average. > But some of the docs you are trying to retrieve *will* be in cache, so > it's hard to control this test. > You could try forcing the index out of memory by "cat"ing some other > big files multiple times and then re-trying.... or do a reboot to be > sure. > > -Yonik > > -- View this message in context: http://www.nabble.com/big-discrepancy-between-elapsedtime-and-qtime-although-enableLazyFieldLoading%3D-true-tp18698590p18699991.html Sent from the Solr - User mailing list archive at Nabble.com.