Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 58688 invoked from network); 18 May 2007 03:04:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 May 2007 03:04:08 -0000 Received: (qmail 95638 invoked by uid 500); 18 May 2007 03:04:08 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 95345 invoked by uid 500); 18 May 2007 03:04:06 -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 95189 invoked by uid 99); 18 May 2007 03:04:06 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 May 2007 20:04:06 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [206.190.38.62] (HELO web50308.mail.re2.yahoo.com) (206.190.38.62) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 17 May 2007 20:03:59 -0700 Received: (qmail 40294 invoked by uid 60001); 18 May 2007 03:03:36 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=XtO70dZ5b1Cdpt6U3d2zZkmQf7D0WYP9vXlY7hZKKukVMTRB2CpUL4rGlWt+SkrVZwZ17X12kLswH2SCx5kB9uiikfJy3f8CB3dN1sSzzK7Ktni/S1wuej/oEvJjbke/oCzy2q2AH/VlLC16dUpHC8j3gRHSCKrWVVZ/YnME5hA=; X-YMail-OSG: TmO853QVM1m7S2aKyRBxMx3SB4IUG7nRPqSKXBULchGmLXIy8adbwLr7cOHQgfqAff__ssImbg-- Received: from [66.108.160.145] by web50308.mail.re2.yahoo.com via HTTP; Thu, 17 May 2007 20:03:36 PDT X-Mailer: YahooMailRC/651.23.1 YahooMailWebService/0.7.41.10 Date: Thu, 17 May 2007 20:03:36 -0700 (PDT) From: Otis Gospodnetic Subject: Re: Field.Store.Compress - does it improve performance of document reads? To: java-user@lucene.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=ascii Message-ID: <752080.39971.qm@web50308.mail.re2.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org ----- Original Message ---- From: Paul Elschot On Thursday 17 May 2007 08:10, Andreas Guther wrote: > I am currently exploring how to solve performance problems I encounter with > Lucene document reads. > > We have amongst other fields one field (default) storing all searchable > fields. This field can become of considerable size since we are indexing > documents and store the content for display within results. > > I noticed that the read can be very expensive. I wonder now if it would > make sense to add this field as Field.Store.Compress to the index. Can > someone tell me if this would speed up the document read or if this is > something only interesting for saving space. I have not tried the compression yet, but in my experience a good way to reduce the costs of document reads from a disk is by reading them in document number order whenever possible. In this way one saves on the disk head seeks. Compression should actually help reducing the costs of disk head seeks even more. OG: Does this really help in a multi-user environment where there are multiple parallel queries hitting the index and reading data from all over the index and the disk? They will all share the same disk head, so the head will still have to jump around to service all these requests, even if each request is being careful to read documents in docId order, no? Otis --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org