<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Tuning slow spatial queries in SQL Server	</title>
	<atom:link href="https://lobsterpot.com.au/blog/2015/04/29/tuning-slow-spatial-queries-in-sql-server/feed/" rel="self" type="application/rss+xml" />
	<link>https://lobsterpot.com.au/blog/2015/04/29/tuning-slow-spatial-queries-in-sql-server/</link>
	<description></description>
	<lastBuildDate>Wed, 10 Jun 2015 08:29:34 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: Jakub K		</title>
		<link>https://lobsterpot.com.au/blog/2015/04/29/tuning-slow-spatial-queries-in-sql-server/#comment-2617</link>

		<dc:creator><![CDATA[Jakub K]]></dc:creator>
		<pubDate>Wed, 10 Jun 2015 08:29:34 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.lobsterpot.com.au/?p=3464#comment-2617</guid>

					<description><![CDATA[There&#039;s another way..
Tesselate the polygon yourself. The relationship between how quickly the spatial query works (across all the rdbms&#039;) is how much extra work the 2nd pass (after .Filter) has to do to get rid of the false positives.
By slicing your complex polygon into simpler, more rectangular shapes you remove the false positive &#039;white space&#039; around your complex polygon. There&#039;s some of my code and more info here - &lt;a href=&quot;https://social.msdn.microsoft.com/Forums/sqlserver/en-US/78132bca-2a95-45c1-b93c-64c83827dc4f/sql-2k8r2-any-performance-hints-for-bulk-loading-data-from-spatialgis-db-into-a-data-warehouse?forum=sqlspatial&quot; rel=&quot;nofollow ugc&quot;&gt;https://social.msdn.microsoft.com/Forums/sqlserver/en-US/78132bca-2a95-45c1-b93c-64c83827dc4f/sql-2k8r2-any-performance-hints-for-bulk-loading-data-from-spatialgis-db-into-a-data-warehouse?forum=sqlspatial&lt;/a&gt; 
I&#039;d be curious to see how the TVFs compare to the approaches you outlined above. Mine doesn&#039;t scale too well; the overhead of the TVF recursively sliciing the polygons becomes obscene once you start throwing a dozen or so complex polygons at it.
I have a .netclr version of it as well that&#039;ll eventually make it online. All coded and working, just the doco left... This one does scale very well]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s another way..<br />
Tesselate the polygon yourself. The relationship between how quickly the spatial query works (across all the rdbms&#8217;) is how much extra work the 2nd pass (after .Filter) has to do to get rid of the false positives.<br />
By slicing your complex polygon into simpler, more rectangular shapes you remove the false positive &#8216;white space&#8217; around your complex polygon. There&#8217;s some of my code and more info here &#8211; <a href="https://social.msdn.microsoft.com/Forums/sqlserver/en-US/78132bca-2a95-45c1-b93c-64c83827dc4f/sql-2k8r2-any-performance-hints-for-bulk-loading-data-from-spatialgis-db-into-a-data-warehouse?forum=sqlspatial" rel="nofollow ugc">https://social.msdn.microsoft.com/Forums/sqlserver/en-US/78132bca-2a95-45c1-b93c-64c83827dc4f/sql-2k8r2-any-performance-hints-for-bulk-loading-data-from-spatialgis-db-into-a-data-warehouse?forum=sqlspatial</a><br />
I&#8217;d be curious to see how the TVFs compare to the approaches you outlined above. Mine doesn&#8217;t scale too well; the overhead of the TVF recursively sliciing the polygons becomes obscene once you start throwing a dozen or so complex polygons at it.<br />
I have a .netclr version of it as well that&#8217;ll eventually make it online. All coded and working, just the doco left&#8230; This one does scale very well</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
