<div dir="ltr">Hello, <br><br>I&#39;m wondering if it&#39;s normal to have a 420 second response time for the following query. <br>A spatial index has been set on the spatial field (the_geom) and other important fields (like sitecode). I&#39;ve generously tweaked the memory options for postgresql.<br>
With such a response time I would have to let my query run for half a year before getting the answer I&#39;m interested in! :)<br><br>Anybody know how I can boost up the process or is it doomed to always be so slow? The europe_layer is indeed a complex polygon....<br>
<br>select&nbsp; st_intersects(a.the_geom,b.the_geom) from sites a,&nbsp; europe_waters b where a.sitecode = &#39;xxxx&#39;;<br><br>&quot;Nested Loop&nbsp; (cost=0.00..496.18 rows=1310 width=35786)&quot;<br>&quot;&nbsp; -&gt;&nbsp; Seq Scan on sites a&nbsp; (cost=0.00..453.43 rows=1 width=35754)&quot;<br>
&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Filter: ((sitecode)::text = &#39;xxxx&#39;::text)&quot;<br>&quot;&nbsp; -&gt;&nbsp; Seq Scan on europe_waters b&nbsp; (cost=0.00..23.10 rows=1310 width=32)&quot;<br><br>My true objective would be to join thses two tables through an st_intersects but for the time it is unconceivable.&nbsp; <br>
<br>Many thanks,<br><br>Erik<br></div>