[postgis-tickets] [PostGIS] #2602: In some cases ST_Distance (geography) would be faster building the index each time
PostGIS
trac at osgeo.org
Wed Dec 13 09:55:02 PST 2017
#2602: In some cases ST_Distance (geography) would be faster building the index
each time
----------------------+-----------------------------
Reporter: niqueco | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS Fund Me
Component: postgis | Version: trunk
Resolution: | Keywords:
----------------------+-----------------------------
Comment (by pramsey):
This is true, maybe, but in particular if the traversal of the tree
happens in some more deterministic order so that the first traversal
attempts to go down the most likely branches of the tree, causing the
pruning of branches to be more aggressive. As it stands, it's possible
that, since the search is depth-first, useless branches can be traversed
first, resulting in to pruning. Getting a good result from the trees is
more-or-less a matter of luck: do we happen to traverse effective branches
of the tree first?
Sorting the nodes in distance order first would ameliorate this.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/2602#comment:2>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list