Subject | Re: [firebird-support] is there a way around the IN clause? |
---|---|
Author | Gary Benade |
Post date | 2004-09-09T13:17:09Z |
Daniel
Martijn
Helen
at all
Thanks for your input - I am going to go and give this a really good think,
right after I make some fresh coffee
Gary
>>How many records are returned by this query?2400
>>Which version of Firebird are you using?1.5
>>Also, try the query without the ORDER BY clause, just to see if it'sHmmm, you may be on to something there. 10 seconds now
>>not the PLAN SORT that is the bottleneck of your query.
Martijn
>Does adding this help:Lucs query returns rows now, but it still takes 46 seconds
>and orders.customerlink = c.link
Helen
> And, after doing that, change the main search clause to:The query took 15 minutes and totally maxed the server out
> and (c.branchcode = 'SAN' OR 1=1)
> (on the suspicion that you have a horrible long dup chain on that index)Yes, the branchcode index has 54 distinct values in 500000 records, not good
at all
Thanks for your input - I am going to go and give this a really good think,
right after I make some fresh coffee
Gary