[Fdo-trac] [fdo-trac] #893: MySQL Provider upgrade to use ST_INTERSECTS()

FDO trac_fdo at osgeo.org
Mon Jan 6 14:30:42 PST 2020


#893: MySQL Provider upgrade to use ST_INTERSECTS()
----------------------------+----------------------
 Reporter:  kshippey        |        Owner:  jng
     Type:  enhancement     |       Status:  closed
 Priority:  major           |    Milestone:  3.8.0
Component:  MySQL Provider  |      Version:  3.8.0
 Severity:  3               |   Resolution:  fixed
 Keywords:  ST_INTERSECTS   |  External ID:
----------------------------+----------------------

Comment (by kshippey):

 A pseudo-bug on this MySQL Provider update:

 It appears that before querying against the spatial operation, there is an
 initial query to obtain the SRID for all rows of the table. For large
 MySQL spatial tables, this initial SRID query is a very expensive
 operation that ultimately renders it unusable above a certain threshold,
 perhaps 1 million rows, due to timeout. Unfortunately for use on a dynamic
 MySQL table, that is not a very large threshold. Even for smaller tables
 this is an unnecessary query without any applied LIMIT.

 One improvement might be to call the GetSRID() with a LIMIT to just one
 single row, and assume the rest of the table follows suit. Once past that
 SRID call, the spatial index in MySQL is very effective at returning
 relevant results even on a very large dataset.

-- 
Ticket URL: <https://trac.osgeo.org/fdo/ticket/893#comment:4>
FDO <http://fdo.osgeo.org/>
Feature Data Objects


More information about the fdo-trac mailing list