Re: tuning on ec2 - Mailing list pgsql-general

From Toby Corkindale
Subject Re: tuning on ec2
Date
Msg-id 4DB7C9E5.707@strategicdata.com.au
Whole thread Raw
In response to Re: tuning on ec2  (Joel Reymont <joelr1@gmail.com>)
List pgsql-general
On 27/04/11 01:34, Joel Reymont wrote:
> On Apr 26, 2011, at 4:31 PM, Scott Marlowe wrote:
>> What's your work_mem and max_connections set to?
>
> I have the default settings, e.g. work_mem = 1MB and max_connections = 100.
>
> I'm looking to process 400 requests per second, though. What should I use for the above?

Those two options don't really affect the number of requests per second,
as I understand things.. They're more about how many simultaneous
requests you can have going.

Make sure you have sensible SQL for the queries you're making, and have
some fast disks. If you're doing a lot of read-only queries, consider
whether you can cache the results in your application rather than
requesting them from the DB every time.

-Toby

pgsql-general by date:

Previous
From: Joel Reymont
Date:
Subject: Re: optimizing a cpu-heavy query
Next
From: Adrian Schreyer
Date:
Subject: Best way to construct PostgreSQL ArrayType (_int4) from C int array