Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 37805 invoked from network); 24 Nov 2005 22:55:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Nov 2005 22:55:09 -0000 Received: (qmail 552 invoked by uid 500); 24 Nov 2005 22:55:04 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 529 invoked by uid 500); 24 Nov 2005 22:55:03 -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 518 invoked by uid 99); 24 Nov 2005 22:55:03 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Nov 2005 14:55:03 -0800 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_10_20,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [209.191.84.245] (HELO web36315.mail.mud.yahoo.com) (209.191.84.245) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 24 Nov 2005 14:56:34 -0800 Received: (qmail 121 invoked by uid 60001); 24 Nov 2005 22:54:41 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=x+15aXeewwXyN87QvXB0DEzEWuDk/n6aHLF0vkWOb4FaY0ZbbP4jZzBdR8PM3BM1/gQdb5359QjWSwZvhUWfxKw4BSSiCAlKthJELBROixHeMAzj37fu6RjCu0f4ggDy4Aai/XmqX500T1c9QP8Bhx8+REBCHGcvD8JT9ET1nlM= ; Message-ID: <20051124225441.119.qmail@web36315.mail.mud.yahoo.com> Received: from [71.141.234.172] by web36315.mail.mud.yahoo.com via HTTP; Thu, 24 Nov 2005 14:54:41 PST Date: Thu, 24 Nov 2005 14:54:41 -0800 (PST) From: Victor Lee Subject: Re: Is It a Good Idea to Save Frequently Search Results in Database to Make It Faster? To: java-user@lucene.apache.org In-Reply-To: <20051124225042.70176.qmail@web36311.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1632656566-1132872881=:98377" Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --0-1632656566-1132872881=:98377 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sorry, actually I meant all search results, not just frequent results. And there is only one search term per search, it's the stuff that belongs to the search terms change often. Victor Lee wrote: Hi, I use Lucene to index stuff that are changed very often but don't need to be real-time to searchers. e.g. the search result can be changed couple times per minute, but I only need to show the change every 5 minutes or so. Is it a good idea to save the search result to a database like mysql db, so that searches will load from db directly rather than doing the same search over and over again? Then after 5 minutes, the system will do the actual search again and then save search result to the db for next 3-5 minutes' searches? Will it make the server handle heavy load better? Since most of the access goes into the database server rather than the webserver with java in backend. Of course, there will be more to implement and maintain. Many thanks. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --0-1632656566-1132872881=:98377--