Performance improvement in sql overlap
This adds an ST_INTERSECT query to the inner query as a performance improvement. I believe that the query planner should use that WHERE statement first and then perform the actual intersections. This should take the inner query from best case n^2 to worst case n^2.