sql server - Increase performance of Remote Scan -
i have sql server query looking this:
update t1 set personid = 'l0299' [remoteip].mydb1.dbo.persons p inner join inserted on p.id = i.id inner join [remoteip].mydb1.dbo.departments d on d.depid = i.depid eventtime >= '2014-08-13'
the basic idea when update record in local table, should update records in remote table. problem is, query slow. takes 2 min 20s ssms.
persons table have 300k records , departments have 300 records.
execution plan looks this:
so, problem remote scan on table persons. pop on remote scan looks this:
any suggestions on how improve performance? have statistics turned on indexes on fields used in joins.
Comments
Post a Comment