[postgis-tickets] [PostGIS] #3864: Sorting by geometry is slower than sorting by geohash
PostGIS
trac at osgeo.org
Tue Oct 10 04:38:03 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):
After recompiling Postgres for server's target architecture and enabling
-Ofast, on latest trunk - we're 12% slower than GeoHash instead of initial
20%:
{{{
[local] gis at gis=# create table juno_osm_point_pt1_fastmath as (select *
from juno_osm_point_unclustered ORDER BY
ST_GeoHash(ST_Transform(ST_Envelope(way),4326),10) COLLATE "C");
SELECT 159843185
Time: 928645,823 ms (15:28,646)
[local] gis at gis=# create table juno_osm_point_pt2_fastmath as (select *
from juno_osm_point_unclustered ORDER BY way);
SELECT 159843185
Time: 1052055,649 ms (17:32,056)
}}}
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3864#comment:24>
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