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: enter image description here

so, problem remote scan on table persons. pop on remote scan looks this: enter image description here

any suggestions on how improve performance? have statistics turned on indexes on fields used in joins.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

Error while updating a record in APEX screen -

c++ - In an add-in in Excel, written in C(++), how does one get the name of the function which called into the addin? -