RE: Joins are slow

2003-01-22 Thread Jennifer Goodie
Try a straight join with the cases table first. You have to play with your queries to get the best results. Creating a temporary, as you mentioned, table might be a very good option in this case, but you need to make sure that your programming takes into account that your page might be hit more t

Re: Joins are slow

2003-01-22 Thread Martin Waite
On Wed, 2003-01-22 at 03:18, Steve Quezadas wrote: > > ([Defendant] Query WITH a join - 8.79 seconds! > EXPLAIN SELECT Defendants.CaseNumber FROM Defendants, Cases WHERE > Cases.CaseNumber = Defendants.CaseNumber AND Filed <= "1999-01-01" AND > (Defendant LIKE "owen%" OR Defendant LIKE "pitts%"