Re: [HACKERS] SQL Query Optimization

2002-04-18 Thread Tom Lane
Dav Coleman <[EMAIL PROTECTED]> writes: > I have noticed that the semantically equivalent SQL queries can > differ > vastly in speed performance depending on the order of clauses ANDed > together ( "WHERE cond1 AND cond2" takes forever, but "WHERE cond2 > AND cond1" comes right back). Could we s

[HACKERS] SQL Query Optimization

2002-04-18 Thread Dav Coleman
Hello, I am using postgresql to house chemical informatics data which consists of several interlinked tables with tens of thousands (maximum) of rows. When doing search queries against these tables (which always requires multiple joins) I have noticed that the semantically equivalent SQL queries