[postgis-devel] [PostGIS] #1828: Estimate returned by geography_gist_selectivity results in slow query plan for ST_DWithin
PostGIS
trac at osgeo.org
Fri Nov 23 00:19:23 PST 2012
#1828: Estimate returned by geography_gist_selectivity results in slow query plan
for ST_DWithin
----------------------------+-----------------------------------------------
Reporter: realityexists | Owner: mcayland
Type: defect | Status: reopened
Priority: medium | Milestone: PostGIS 2.0.2
Component: postgis | Version: 2.0.x
Resolution: | Keywords:
----------------------------+-----------------------------------------------
Comment(by realityexists):
OK, tested on r10731 on 32-bit Linux. It doesn't crash any more - good
start! A simplified version of my original query is now twice as fast with
the filtering function inlined compared to not inlined. The real, original
query is still about 20% slower with inlining than without. That's a big
improvement on before (when it didn't return at all), but I guess it's
still largely a matter of luck.
I can't compare the absolute times before and after, because my "main"
Postgres installation (on Windows x64) is still at r10577. I'm holding off
upgrading that until the "180/-180" issue in #2066 is fixed.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1828#comment:58>
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-devel
mailing list