[gdal-dev] GDAL may create slow GPKG/SQLite indexes
Jukka Rahkonen
jukka.rahkonen at mmmtike.fi
Mon Jun 9 01:53:42 PDT 2014
<a.furieri <at> lqt.it> writes:
>
> On Mon, 9 Jun 2014 07:31:05 +0000 (UTC), Jukka Rahkonen wrote:
> > Perhaps this has something to do with different SQLite versions
> > included in
> > GDAL and Spatialite-gui. My GDAL is v.2.0 Win-64 build from
> > gisinternals.
> >
> > This kind of behaviour is nasty when planning to build well optimized
> > and
> > indexed GeoPackage datafiles for the end users.
> >
>
> Hi Jukka,
>
> there was a major change affecting all recent versions of SQLite
> starting since 3.8.0 (2013-08-26) [1]
>
> a brand new NGQP (New Generation Query Planner) was introduced:
> in the vast majority of cases NGQP will effectively imply
> choosing a more efficient query strategy.
> but unhappily there are few exceptions (worst cases) where
> NGQP could possibly follow a very inefficient query strategy;
> please read sections 4.0, 4.1 and 4.2 of the aforementioned
> sqlite's document for more details.
>
> [1] http://www.sqlite.org/queryplanner-ng.html
Thanks for the link. I wonder what is best thing to do if the aim is to
create fast and interoperable indexed SQLite/Spatialite/GPKG database
deliverables. Is it perhaps to create indexes with SQLite >=3.8.0 and always
run ANALYZE before sending the databases for the users and tell them to use,
if possible, software that is also using SQLite >=3.8.0 for reading the
databases?
-Jukka Rahkonen-
More information about the gdal-dev
mailing list