<div dir="ltr">Hi Jeremy<div><br></div><div>Is this <span style="font-family:arial,sans-serif;font-size:13px">PRAGMA integrity_check </span>really the bottle neck? </div><div>Is it an integrity check on a data type (e.g. integer - its probably actually an integrity check on SRID)?<br>
</div><div><div>Can you point to the code? </div></div><div><br></div><div>Yours, Stefan</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-17 9:32 GMT+02:00 Jeremy Palmer <span dir="ltr"><<a href="mailto:JPalmer@linz.govt.nz" target="_blank">JPalmer@linz.govt.nz</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've just been using the new implementation of Geopackage in QGIS :) However each map render or feature info is very slow for large database files - even with the new GDAL/OGR Geopackage spatial index support. Each time QGIS renders a new map view or executes a feature info it re-opens the Geopackage file in QgsOgrFeatureIterator via OGROpen, and the Geopackage driver open method runs PRAGMA integrity_check which is very slow (4 secs with my 2GB test file). This integrity check is actually a Geopackage requirement.<br>

<br>
How can this be fixed? At the in QGIS or GDAL/OGR level?<br>
<br>
Cheers,<br>
Jeremy<br>
<br>
This message contains information, which may be in confidence and may be subject to legal privilege. If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify us immediately (Phone 0800 665 463 or <a href="mailto:info@linz.govt.nz">info@linz.govt.nz</a>) and destroy the original message. LINZ accepts no responsibility for changes to this email, or for any attachments, after its transmission from LINZ. Thank You.<br>

_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div><br></div>