I have a couple of thousand polygons in SpatiaLite. I am trying to do a "touches" query:
select map1.* from map1,map2
where touches(map1."Geometry",map2."Geometry")
and wow, is it SLOW!
However, if I ask it to just do it for one parcel in map1, it runs really fast.
select map1.* from map1,map2
where touches(map1."Geometry",map2."Geometry")
and map1."ROWID" = 753
I do expect that the first query will run slower, but it is amazingly slow. It runs very fast in SQLServer, Manifold GIS, and PostGIS. Is Spatialite just really inefficient?