Re: Running some query in low priority

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: S Arvind <arvindwill(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Running some query in low priority
Date: 2009-11-05 18:02:09
Message-ID: dcc563d10911051002q31651d40x4b04020b9e5f6ae@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Thu, Nov 5, 2009 at 2:36 AM, S Arvind <arvindwill(at)gmail(dot)com> wrote:
> Hi Developers and Tuners,
>          Is there any way to run some query in low priority and some query
> in higher priority in pg. The main reason for this is i need my main
> application(high priority) to be undisturbed by the sub application(low
> priority) which is running on same DB. Is there anyother good way to operate
> this?

Are you IO or CPU bound? If CPU bound get more CPUs. If IO bound see
about getting more IO, specifically a fast RAID controller with
Battery Backed Cache, and a fair number of fast hard drives in a
RAID-10. Trying to throttle one thing to get the others to run faster
can only buy you so much time. As load increases you'll need more CPU
or IO.

If the thing you're doing is CPU intensive, and it needs lots of CPUs,
then look at some form of replication to other boxes to throw more
CPUs at the problem.

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Craig Ringer 2009-11-06 08:22:32 Re: Followup: vacuum'ing toast
Previous Message Greg Smith 2009-11-05 14:28:15 Re: Followup: vacuum'ing toast