#772 closed defect (fixed)
[topology] ValidateTopology takes way too much time
Reported by: | strk | Owned by: | strk |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.0.0 |
Component: | topology | Version: | master |
Keywords: | Cc: |
Description
It's been running overnight (circa 7 hours now) w/out completing.
This is a topology with 33921 edges (total 314179 points), 26847 nodes and 12109 faces.
Haven't checked, but I bet it's the final checks for FACE/FACE overlap and FACE/FACE containment. There was a TODO in the code already about giving it more thoughts...
Change History (5)
comment:1 by , 14 years ago
Component: | postgis → topology |
---|---|
Owner: | changed from | to
Status: | new → assigned |
Version: | 1.5.X → trunk |
comment:2 by , 14 years ago
comment:3 by , 14 years ago
Oh, wait... running the validation again takes 2.7 seconds !! I wonder if the first run was done before some kind of auto vacuum analyze !
Subsequent runs keep taking 2.7 secs..
comment:4 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
As of r6658 the smaller topology validation takes 26 seconds (while it used not to complete in an hour). Considering fixed for now.
So, removing the check for overlapping faces and face-in-face makes the run complete in 7 minutes against a reduced topology which wasn't completing in over 6 hours.
This other, smaller topology has these characteristics:
Interesting enough, the validation reports lots of coincident nodes and an edge/edge crossing, which makes me wonder if it makes sense at all to try at analize faces if there are errors with edges (since faces are defined _by_ edges...)