Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

remote query - join is slow

Status
Not open for further replies.

ija

Programmer
Feb 13, 2002
38
CZ
Hi.

Join on two tables in different databases is terribly slow. Some ideas, what to do?

We have two tables in two different databases, each with about 4 milions records. When we do a select on them retrieving about 100 records from each (it is contact and address), it runs longer then we have ever waited. We used a cursor and variable, which we sent into the remote query, but it is still slow and we would like to avoid the cursor anyway...
 
Try to chose local table as a driving in nested loop using hint. You may also try to use DRIVING_SITE hint
 
I wondered, why the DRIVING_SITE hint did not work. I mistyped it...

Thanks, now it is quite fast.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top