[postgis-tickets] [PostGIS] #3864: Sorting by geometry is slower than sorting by geohash

PostGIS trac at osgeo.org
Wed Oct 11 02:40:11 PDT 2017


#3864: Sorting by geometry is slower than sorting by geohash
----------------------+---------------------------
  Reporter:  komzpa   |      Owner:  pramsey
      Type:  defect   |     Status:  closed
  Priority:  medium   |  Milestone:  PostGIS 2.4.1
 Component:  postgis  |    Version:  2.3.x
Resolution:  fixed    |   Keywords:
----------------------+---------------------------

Comment (by komzpa):

 Bigint sorted sort is the same time as sorted geom and is almost same as
 unsorted bigint. Geohash time is same as unsorted Geohash.

 {{{
 [local] gis at gis=# create table juno_osm_point_pt1_fastmath_ordered as
 (select * from juno_osm_point_pt1_fastmath ORDER BY
 ST_GeoHash(ST_Transform(ST_Envelope(way),4326),10) COLLATE "C");
 SELECT 159843185
 Time: 935372,463 ms (15:35,372)

 [local] gis at gis=# create table juno_osm_point_unclustered_ordered as
 (select * from juno_osm_point_unclustered order by osm_id);
 SELECT 159843185
 Time: 596486,915 ms (09:56,487)

 }}}

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3864#comment:29>
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