Search Postgresql Archives

Re: Poor query performance on one of two "like" databases in production.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Keaton_Adams@xxxxxxxxxx (Keaton_Adams@xxxxxxxxxx) wrote:
> It looks like it is just a difference in data volume.  We are re-working the query to see what that will do.

Just my 2c, but I'd recommend using JOIN syntax instead of comma-joins.
eg:

select * from a JOIN b USING (col1,col2);

or:

select * from a JOIN b ON (a.col1 = b.col2);

Would make the query alot easier to read, imv.  Also, those UNION ALLs
probably aren't really helping this whole situation..  Perhaps you could
move them out of the FROM clause and just have a simpler query for each
set which is *then* UNION ALL'd together.

	THanks,

		Stephen

	Thanks,

		Stephen

Attachment: signature.asc
Description: Digital signature


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux