Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4689

Slow performance in SQL Server 2012 when we run a command on a spatial data type of a large table

$
0
0

Hi friends,

the  following is the culprit for poor performance. cpu spike always high(avg-97-100)

-cpu busy count-74687537

SELECT top(1)@location=isnull(location,'No Location Found.'),@lat=Lat,@lon=lon 
 FROM [IndiaLocation].[dbo].[IndiaLocation] WITH(INDEX(idxGeom))
 WHERE geom.STDistance(@g) is not null and geom.STDistance(@g) < 2000
 ORDER BY geom.STDistance(@g);

any idea how to stable it and how degrade the cpu resources...


Viewing all articles
Browse latest Browse all 4689

Trending Articles



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