Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 12 of 12 total
Thread Slow/funny query progress
Wed, May 2 2007 3:17 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Kerry


SELECT INTO creates the table for you.

Roy Lambert
Wed, May 2 2007 3:36 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Kerry,

<< Anyway, if you can see a faster way to run the query, I would appreciate
it. >>

Well, the issue is what I thought it was originally.  The
userauthority_offices condition in the WHERE clause doesn't filter any rows
for the joins because the join is on the OfficeID column, therefore the
query has to perform ~35,000 X 4 X 2 joins in this query to generate the
result set, or ~280,000 joins.   That's what is taking so long.

The only solution is to filter the rows a little better by being more
selective in your criteria for the WHERE clause.  If that's not possible,
then you'll have to live with the execution time.

When I get a chance, I'll migrate the data and run it against EDB and see
how fast it goes.

--
Tim Young
Elevate Software
www.elevatesoft.com

« Previous PagePage 2 of 2
Jump to Page:  1 2
Image