Re: Help optimize view

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <pgsql-performance(at)postgresql(dot)org>, "Mike Relyea" <Mike(dot)Relyea(at)xerox(dot)com>
Cc: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Help optimize view
Date: 2007-08-13 16:25:01
Message-ID: 46C03F8C.EE98.0025.0@wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

>>> On Mon, Aug 13, 2007 at 10:35 AM, in message
<1806D1F73FCB7F439F2C842EE0627B18065BF2C0(at)USA0300MS01(dot)na(dot)xerox(dot)net>, "Relyea,
Mike" <Mike(dot)Relyea(at)xerox(dot)com> wrote:
> I'm running 8.2.4 on Windows XP with 1.5 GB memory.
> shared_buffers = 12288
> effective_cache_size = 10000

For starters, you might want to adjust one or both of these. It looks to me
like you're telling it that it only has 78.125 MB cache space. That will
make it tend to want to scan entire tables, on the assumption that the cache
hit ratio will be poor for random reads.

Since you're on 8.2.4, you can use units of measure to help make this easier
to read. You could, for example, say:

shared_buffers = 96MB
effective_cache_size = 1200MB

-Kevin

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Relyea, Mike 2007-08-13 18:48:30 Re: Help optimize view
Previous Message Joshua D. Drake 2007-08-13 16:15:35 Re: How to ENABLE SQL capturing???