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

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

python - Django-cities exits with "killed" -

python - How to get a widget position inside it's layout in Kivy? -