X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id DEF86D1B4FC for ; Wed, 17 Sep 2003 09:56:56 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 77166-07 for ; Wed, 17 Sep 2003 06:56:28 -0300 (ADT) Received: from pns.mm.eutelsat.org (pns.mm.eutelsat.org [194.214.173.227]) by svr1.postgresql.org (Postfix) with ESMTP id 4733ED1B507 for ; Wed, 17 Sep 2003 06:56:25 -0300 (ADT) Received: from nts-03.mm.eutelsat.org (localhost [127.0.0.1]) by pns.mm.eutelsat.org (8.11.6/linuxconf) with ESMTP id h8H8vr109535; Wed, 17 Sep 2003 10:57:54 +0200 Received: from GMENDOLA2 (gmendola2.mm.eutelsat.org [194.214.173.26]) by nts-03.mm.eutelsat.org (8.11.6/linuxconf) with SMTP id h8H9ntR00615; Wed, 17 Sep 2003 11:49:55 +0200 Message-ID: <006d01c37d01$ef3da620$152aa8c0@GMENDOLA2> From: "Mendola Gaetano" To: Cc: "Dennis Oudijk" References: Subject: Re: Statistical Reporting Date: Wed, 17 Sep 2003 11:56:15 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/282 X-Sequence-Number: 10370 "Dennis Oudijk" wrote: > We run an apartment rental websites where people can post the rental > properties that are available to rent. > > We currently have a statistics feature that provides landlords with > information such as 'how many time has their property come up in a search' > and 'how many times have people clicked on the rental property in the search > result to view the complete details'. > > This queries our database and seems to place a heavy load on our server. we > are thinking of using replication so that we can query the offline server > (backup server) so that we do not task the live server however we understand > that currently there is not a stable replication solution for Postgresql > 7.32 > > Does anybody have any suggestion on how to handle this query more > efficiently? Which query ? Show as, the query, table definition, and the explain analyze on that query. Regards Gaetano Mendola