topology.AddFace: group face boundary edge finding query results to avoid considering the _same_ edge multiple times. Can reduce execution time from _hours_ to _minutes_ [RT-SIGTA]

git-svn-id: http://svn.osgeo.org/postgis/trunk@6633 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
Sandro Santilli 2011-01-15 23:14:30 +00:00
parent 013d1adf7c
commit a85b767ad7

View file

@ -408,6 +408,7 @@ BEGIN
|| '::geometry && geom AND ST_Relate(geom, '
|| quote_literal(bounds::text)
|| ', ''1FF******'')'
|| ' GROUP BY geom, edge_id, left_face, right_face, side'
LOOP
RAISE DEBUG 'Edge % (left:%, right:%) - side : %',
rec.edge_id, rec.left_face, rec.right_face, rec.side;