Quantcast
Viewing all articles
Browse latest Browse all 12198

Server cleanup issues

I have found the server cleanup puts SQL at 100% CPU for days on end if you have a lot of updates. Here is the poorly performing query. Anyone have any ideas for an index to speed this up?UPDATE tbDeployment SET DeploymentStatus = 0 FROM tbDeployment INNER JOIN tbRevision ON tbRevision.RevisionID = tbDeployment.RevisionID WHERE tbRevision.RowID = @rowID AND tbDeployment.ActionID = 0 AND tbDeployment.DeploymentStatus = 1 AND tbDeployment.UpdateType NOT IN ('Category', 'Detectoid')

Viewing all articles
Browse latest Browse all 12198

Trending Articles



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