question

shridhar avatar image
shridhar asked

spatial index in sql server slow

I have below table 1) AreaMap aid int ,location geograpghy ,name varchar(40) with spatial index (SpatialIndex_Area) 2) point pid int, adresGeo geograpghy selecct pid, ( selecct top 1 name from AreaMap WITH(index(SpatialIndex_Area)) where location.STDistance(adresGeo) <50 order by location.STDistance(adresGeo)) as name from point when i run above query process is slows
sqlsql-server-2016spatial
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.