Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id D21862E008A for ; Thu, 27 Mar 2008 01:09:29 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 04947-03 for ; Thu, 27 Mar 2008 01:09:23 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from ipmail01.adl6.internode.on.net (ipmail01.adl6.internode.on.net [203.16.214.146]) by postgresql.org (Postfix) with ESMTP id A36682E0066 for ; Thu, 27 Mar 2008 01:09:19 -0300 (ADT) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuAEAI656kfLevdH/2dsb2JhbACBWqlP X-IronPort-AV: E=Sophos;i="4.25,562,1199626200"; d="scan'208";a="69970318" Received: from ppp247-71.static.internode.on.net (HELO DevBox.local) ([203.122.247.71]) by ipmail01.adl6.internode.on.net with ESMTP; 27 Mar 2008 14:39:15 +1030 Message-ID: <47EB1DE9.5010507@Sheeky.Biz> Date: Thu, 27 Mar 2008 14:39:13 +1030 From: Shane Ambler User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) MIME-Version: 1.0 To: Scott Marlowe CC: p prince , pgsql-performance@postgresql.org Subject: Re: how can a couple of expensive queries drag my system down? References: <9722e78e0803261248g3305c2b9yfd5cfd528a505150@mail.gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/498 X-Sequence-Number: 29452 Scott Marlowe wrote: > On Wed, Mar 26, 2008 at 1:48 PM, p prince wrote: >> is this 'normal'? (loaded question I know) >> Should I be looking to offload expensive reporting queries to read-only >> replicants of my database? > > Yes, definitely look into setting up something like a slony slave > that's used for reporting queries. The nice thing about this setup is > you only need to replicate the tables you run reports against. > I would look at fixing the slow queries so that they aren't a problem first. I'm sure if you send in your queries and table defs you can get some useful feedback here. If there is no way of improving them then look at a reporting slave. -- Shane Ambler pgSQL (at) Sheeky (dot) Biz Get Sheeky @ http://Sheeky.Biz