[postgis-tickets] [PostGIS] #2898: Define a guideline for function cost

PostGIS trac at osgeo.org
Fri Aug 15 08:14:48 PDT 2014


#2898: Define a guideline for function cost
-------------------------+--------------------------------------------------
 Reporter:  strk         |       Owner:  pramsey      
     Type:  enhancement  |      Status:  new          
 Priority:  medium       |   Milestone:  PostGIS 2.2.0
Component:  postgis      |     Version:  trunk        
 Keywords:               |  
-------------------------+--------------------------------------------------

Comment(by strk):

 The guideline example above is completely off, though.
 Here are some real numbers:
 {{{
           noop : Total runtime: 19523.492 ms (full deserialize/serialize)
    st_envelope : Total runtime: 18411.870 ms (header slice)
  st_convexhull : Total runtime: 18104.542 ms
          plain : Total runtime: 51.341 ms (???)
 }}}

 The times were taken running queries against a ~180k rows raster coverage.
 The "plain" is a "SELECT rast FROM ...".
 The "noop" is a "SELECT postgis_noop(rast) FROM ...".

 The difference between "plain" and "noop" is impressive!!

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2898#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