[postgis-users] performance of intersects(a,b)

Kis János Tamás kjt at takarnet.hu
Wed Feb 20 22:47:41 PST 2008


csütörtök 14 február 2008 15.11 dátummal Willy-Bas Loos ezt írta:
>
> select 'yes' as foo
> from table1 a, table1 b
> where a.gid=4
> and b.gid=4
> and intersects(a.the_geom, b.the_geom)
>

Did you try the next procedure?

create index i_a on table1  usng gist the_geom;
create index i_b on table2  usng gist the_geom;

select 'yes' as foo
from table1 a, table1 b
where a.gid=4
    and b.gid=4
    and a.the_geom && b.the_geom
    and intersects(a.the_geom, b.the_geom)

Regards,
kjt


McAfee SCM 4.1 által ellenőrizve!


More information about the postgis-users mailing list