[postgis-tickets] [PostGIS] #2365: find_srid performance regression with large numbers of tables

PostGIS trac at osgeo.org
Wed Apr 29 06:00:03 PDT 2015


#2365: find_srid performance regression with large numbers of tables
------------------------+---------------------------
  Reporter:  angrygoat  |      Owner:  pramsey
      Type:  defect     |     Status:  reopened
  Priority:  medium     |  Milestone:  PostGIS 2.2.0
 Component:  postgis    |    Version:  2.0.x
Resolution:             |   Keywords:
------------------------+---------------------------

Comment (by pramsey):

 Does using a strpos instead of a LIKE make any difference? I'm surprised a
 one-time test of "does it have a dot' is having a noticeable effect on
 performance.
 {{{
         IF ( schem = '' AND strpos(tabl,'.') > 0 ) THEN
 }}}
 I mean, the test gets run once, and only if schema is empty... how is this
 causing noticeable performance differences?

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