Re: Why would this slow the query down so much? - Mailing list pgsql-sql

From Josh Berkus
Subject Re: Why would this slow the query down so much?
Date
Msg-id web-147949@davinci.ethosmedia.com
Whole thread Raw
In response to Why would this slow the query down so much?  (Stuart Grimshaw <nospam@smgsystems.co.uk>)
List pgsql-sql
Stuart,

> ------------------------------------------
> SELECT a.category, b.headline, b.added, c.friendlyname
> FROM caturljoin as a
>         INNER JOIN stories as b ON (a.url = b.source)
>         INNER JOIN urllist as c ON (a.url = d.urn)
> WHERE a.category = 93 ORDER BY b.added DESC LIMIT 1;
> ------------------------------------------

Hmmm?  Where did table "d" come from?  If this is really your query,
that's your problem.

-Josh

______AGLIO DATABASE SOLUTIONS___________________________                                      Josh Berkus Complete
informationtechnology      josh@agliodbs.com  and data management solutions       (415) 565-7293 for law firms, small
businesses       fax 621-2533   and non-profit organizations.      San Francisco
 


pgsql-sql by date:

Previous
From: "Josh Berkus"
Date:
Subject: EXECUTE ... INTO?
Next
From: Vivek Khera
Date:
Subject: Re: VARCHAR vs TEXT