aboutsummaryrefslogtreecommitdiff
path: root/data/sql/commit.sql
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-02-05 17:59:55 +0100
committerEven Rouault <even.rouault@spatialys.com>2020-02-06 13:55:06 +0100
commit589c44aa12f7a93e73297e76a898bae3783879c9 (patch)
tree45cc9a39b8000dac03d67f38d26e5c6603875b5a /data/sql/commit.sql
parentd7cd77244e1565fdc232b3d85a3b99720ecb42b4 (diff)
downloadPROJ-589c44aa12f7a93e73297e76a898bae3783879c9.tar.gz
PROJ-589c44aa12f7a93e73297e76a898bae3783879c9.zip
Fix performance issue, affecting projinfo EPSG:7842
Fixes #1913 AuthorityFactory::createBetweenGeodeticCRSWithDatumBasedIntermediates() issued a complex SQL query that pushes the SQLite3 query plan optimizer to its limits. Was working reasonably with sqlite 3.11, but not with later versions. So put less constraints in the main query and do post-processing checks and auxiliary requests to avoid such issues. For some unknown reason, this slightly slows down a bit execution time of the whole test_cpp_api binary (~ 10%), but couldn't come with something better, despite trying many variations of the main SQL query. It seems that in the general case the non-filter LEFT JOIN on the supersession table helped, except on this EPSG:7842 case.
Diffstat (limited to 'data/sql/commit.sql')
0 files changed, 0 insertions, 0 deletions