SQL Server 2008 spatial index and CPU utilization with MapGuide Open Source 2.1

Posted by Antonio de la Peña on Stack Overflow See other posts from Stack Overflow or by Antonio de la Peña
Published on 2009-11-30T02:59:37Z Indexed on 2010/05/08 12:48 UTC
Read the original article Hit count: 273

I have a SQL Server table with hundreds of thousands of geometry type parcels. I have made indexes on them trying different combinations of density and objects per cell settings. So far I'm settiling for LOW, LOW, MEDIUM, MEDIUM and 16 objects per cell and I made a SP that sets the bounding box according to the extents of the entities in the table.

There is an incredible performance boost from queries taking almost minutes without index to less than seconds, it gets faster when the zoom is closer thus less objects are displayed.

Yet the CPU utilization gets to 100% when querying for features, even when the queries themselves are fast. I'm worrying this will not fly in a production environment.

I am using MapGuide Open Source 2.1 for this project, but I am positive the CPU load is caused by SQL Server.

I wonder if my indexes are set properly. I haven't found any clear documentation on how to properly set them up. Every article I've read basically says "it depends..." but nothing specific. Do you have any recommendations for me, including books, articles?

Thank you.

© Stack Overflow or respective owner

Related posts about geospatial

Related posts about sql-server