Re: Help with tuning this query

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: "Ken Egervari" <ken(at)upfactor(dot)com>
Cc: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Help with tuning this query
Date: 2005-03-03 05:36:23
Message-ID: 200503022136.23275.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers-win32 pgsql-performance

Ken,

> I've tried to use Dan Tow's tuning method and created all the right indexes
> from his diagraming method, but the query still performs quite slow both
> inside the application and just inside pgadmin III.  Can anyone be kind
> enough to help me tune it so that it performs better in postgres?  I don't
> think it's using the right indexes, or maybe postgres needs special
> treatment.

FWIW, I picked up Dan Tow's book to give it a read, and they guy isn't
qualified to author "SQL Tuning". You should chuck that book, it won't help
you -- not with Oracle or SQL Server, and certainly not with PostgreSQL.
O'Reilly continues to have trouble turning out quality database books.

Also, if you *were* using Dan's method, you'd be driving off Person, not
Shipment.

--
Josh Berkus
Aglio Database Solutions
San Francisco

In response to

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Josh Berkus 2005-03-03 05:52:13 Re: Help with tuning this query (with explain analyze finally)
Previous Message John A Meinel 2005-03-03 05:04:59 Re: Help with tuning this query (more musings)

Browse pgsql-performance by date

  From Date Subject
Next Message Josh Berkus 2005-03-03 05:52:13 Re: Help with tuning this query (with explain analyze finally)
Previous Message Josh Berkus 2005-03-03 05:31:01 Re: Performance tradeoff