From java-user-return-45868-apmail-lucene-java-user-archive=lucene.apache.org@lucene.apache.org Tue Apr 20 14:23:05 2010 Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 23937 invoked from network); 20 Apr 2010 14:23:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Apr 2010 14:23:05 -0000 Received: (qmail 77371 invoked by uid 500); 20 Apr 2010 14:23:02 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 77319 invoked by uid 500); 20 Apr 2010 14:23:02 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 77311 invoked by uid 99); 20 Apr 2010 14:23:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Apr 2010 14:23:02 +0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=AWL,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of erickerickson@gmail.com designates 209.85.212.48 as permitted sender) Received: from [209.85.212.48] (HELO mail-vw0-f48.google.com) (209.85.212.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Apr 2010 14:22:57 +0000 Received: by vws13 with SMTP id 13so817982vws.35 for ; Tue, 20 Apr 2010 07:22:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type; bh=HV3JtW51Y/4hF0hl0n4Zwv/73kY7t6yiojVsR7QzdN0=; b=TdpCMlnSms/2/QSjTXDq2Yu4H6MI9BaDhxK1p5c3cEPQ5PNDpf1YoAHnluxbWz89P+ 9S/TR+c6F32IyDyKsPwqtgrvQixeNRgZbd6PW6+vBoh+HG8XZ7Wp7FvpKonWqOqHmXZQ tIMIyt/pSthjyWpshM2IZmEoVe4Acf+dijWLM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=E4ntilI/z1eZS/rKgqk0rkKU9l5OhVdnfMtUoWX2cj0ym/J//hxI65/4o0AIV/E2ua Jhu1gbEGbcJmZ+GNMVkRPBpQXFQbi9GLpaasPXWcI4mvtPfrJw+0vsrD0hbYeHb8fYqd jedItCCk6L76L1qrgmJcMB0ZAn9ZxMmH/brxw= MIME-Version: 1.0 Received: by 10.150.199.5 with HTTP; Tue, 20 Apr 2010 07:22:36 -0700 (PDT) In-Reply-To: <001801cae048$97825a50$6400a8c0@dev> References: <005d01cadd2c$6b81f920$6400a8c0@dev> <001801cae048$97825a50$6400a8c0@dev> Date: Tue, 20 Apr 2010 10:22:36 -0400 Received: by 10.220.128.30 with SMTP id i30mr4708711vcs.148.1271773356847; Tue, 20 Apr 2010 07:22:36 -0700 (PDT) Message-ID: Subject: Re: Doc Caching From: Erick Erickson To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001636e1ece32b72cb0484abcf10 --001636e1ece32b72cb0484abcf10 Content-Type: text/plain; charset=ISO-8859-1 <<>> You've hit one of my personal hot buttons . Never, never, never until 1> you're reasonably sure you actually *have* a performance issue. 2> your performance issues can't be fixed more cheaply. Memory is waaaaaaaay cheap compared to all the time you'll spend programming your caching solution then fixing the bugs in it. Best Erick On Tue, Apr 20, 2010 at 1:16 AM, Chris B wrote: > Mike cheers for the reply. > > Is it worth setting up your own caching or letting the OS do it? I've setup > a caching system, but if the OS is doing it it seems pointless. > > Chris > > ----- Original Message ----- From: "Michael McCandless" < > lucene@mikemccandless.com> > To: > Sent: Tuesday, April 20, 2010 2:17 AM > Subject: Re: Doc Caching > > > > No, Lucene doesn't. But the OS usually does (in is IO cache), > assuming there is spare RAM. > > The "only" things that are explicitly held in memory by Lucene are the > norms ("boost bytes"), terms dict index, deletions bit vector and > field cache (used eg when you sort by a field), I think. > > Mike > > On Fri, Apr 16, 2010 at 2:16 AM, Chris B wrote: > >> Hi >> >> Does Lucene cache the documents it retrieves? If so in which object? >> >> Chris >> >> ____________________________________________________________ >> GET FREE 5GB EMAIL - Check out spam free email with many cool features! >> Visit http://www.inbox.com/email to find out more! >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-user-help@lucene.apache.org >> >> >> > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > --001636e1ece32b72cb0484abcf10--