Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Issue with Merge command not finishing

$
0
0

SQL Server Standard 2008 R2

I have a rather complex MERGE command with when matched, not matched target, and not matched source.  It runs just fine on a data set of 360K rows, but does not complete on a 500K data set.  sp_who2 indicates millions of pagelatch_sh waits.  Yet if on that same data set, I break the Merge up and run each part individually (insert, update, delete) they each run very quickly.

Has anyone seen this before?


Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>