We have a database A on OraOLEDB. Oracle server, and database B on SQL Server. Our department uses SQL Server to manipulate both A and B, so we created some views for database A in SQL Server so that we can read and write query for those data. But when we have a query for A, it took a lot of time on executing, even if it is a simple query. And the execution plan shows the majority time is on remote query. So I would like to know what is the best way to deal with this issue? Thank you!
Here is the example query:
select p.polkey
,m.state
from dbo.policy as p
inner join dbo.marina as m
on m.polkey = p.polkey
where p.state = 'FL'
and cast(p.issue_date as date) between '20150101' and '20150228'