Re: 7.3.1 New install, large queries are slow

From: Andrew Sullivan <andrew(at)libertyrms(dot)info>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: 7.3.1 New install, large queries are slow
Date: 2003-01-16 13:17:38
Message-ID: 20030116081738.B22344@mail.libertyrms.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Wed, Jan 15, 2003 at 03:30:55PM -0800, Roman Fail wrote:
> Thanks to everyone for the quick replies! I'm sure that my lack of skill with SQL queries is the main problem. What's strange to me is how MSSQL takes my bad queries and makes them look good anyway. It must have a real smart planner.
> Andrew Sullivan wrote:
> >First, the performance of foreign keys is flat-out awful in Postgres.
> >I suggest avoiding them if you can.
>
> I don't have any problem getting rid of FKs, especially if it might
> actually help performance. The nightly data import is well-defined

Sorry, I think I sent this too quickly. FKs make no difference to
SELECT performance, so if you're not doing updates and the like at
the same time as the SELECTs, there's no advantage. So you should
leave the FKs in place.

> I think this is the most likely problem. I've read through Chapter
> 10 of the 7.3 docs, but I still don't feel like I know what would
> be a good order. How do you learn this stuff anyway? Trial and
> error?

Sorry, but yes.

A
--
----
Andrew Sullivan 204-4141 Yonge Street
Liberty RMS Toronto, Ontario Canada
<andrew(at)libertyrms(dot)info> M2P 2A8
+1 416 646 3304 x110

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message CaptainX0r 2003-01-16 13:45:02 Re: Sun vs. Mac - gprof output
Previous Message Hannu Krosing 2003-01-16 12:54:58 Re: 7.3.1 New install, large queries are slow