[postgis-tickets] [PostGIS] #3864: Sorting by geometry is slower than sorting by geohash
PostGIS
trac at osgeo.org
Sat Sep 30 02:32:40 PDT 2017
#3864: Sorting by geometry is slower than sorting by geohash
----------------------+---------------------------
Reporter: komzpa | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.4.1
Component: postgis | Version: 2.3.x
Resolution: | Keywords:
----------------------+---------------------------
Comment (by pnorman):
Just to note, `ST_GeoHash(ST_Transform(ST_Envelope(way),4326),10) COLLATE
"C")` is tweaked based on OSM data, but the selection of 10 was done prior
to the commit Komzpa linked, the C collation.
For geohash sorting, the C collation is vital and nearly cuts the time in
half.
https://github.com/openstreetmap/osm2pgsql/pull/242 for GeoHash details
https://github.com/openstreetmap/osm2pgsql/issues/581 for collation
details.
The osm_id sort puts a lower bound on the theoretical performance.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3864#comment:7>
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