Hi Kis,<br>I don't think the GiST index has anything to do with this, i'm only processing one record.<br>thx,<br>WBL<br><br><div class="gmail_quote">On Thu, Feb 21, 2008 at 7:47 AM, Kis János Tamás <<a href="mailto:kjt@takarnet.hu">kjt@takarnet.hu</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">csütörtök 14 február 2008 15.11 dátummal Willy-Bas Loos ezt írta:<br>
<div class="Ih2E3d">><br>
> select 'yes' as foo<br>
> from table1 a, table1 b<br>
> where a.gid=4<br>
> and b.gid=4<br>
> and intersects(a.the_geom, b.the_geom)<br>
><br>
<br>
</div>Did you try the next procedure?<br>
<br>
create index i_a on table1  usng gist the_geom;<br>
create index i_b on table2  usng gist the_geom;<br>
<div class="Ih2E3d"><br>
select 'yes' as foo<br>
from table1 a, table1 b<br>
where a.gid=4<br>
    and b.gid=4<br>
</div>    and a.the_geom && b.the_geom<br>
<div class="Ih2E3d">    and intersects(a.the_geom, b.the_geom)<br>
<br>
</div>Regards,<br>
kjt<br>
<br>
<br>
McAfee SCM 4.1 által ellenőrizve!<br>
<br>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
<br></blockquote></div><br>