<div dir="ltr">I suspect the biggest reason for the difference in performance between opening the GPKG in RO mode and RW mode (file system level) is the creation of the -wal and its partner the -shm temporary files. Information about temporary files created when using GPKG is on this link <a href="https://www.sqlite.org/tempfiles.html">https://www.sqlite.org/tempfiles.html</a> as the underlying DB is sqlite. <div><br></div><div>When you open a GPKG, meaning you are accessing data from the file, the -wal file and its partner the -shm file are created in the same directory as the GPKG file. The WAL file is created to implement atomic commit and rollback. At the file system level, if you place the GPKG in read only mode then there is never a concern about writing data to the database so the -wal and -shm temp files are not created. The behaviour of the temporary files has nothing to do whether the layer is put in edit mode or not, but is a functionality of SQLite.</div><div><div><br></div><div>You don't have the speed problem with shapefiles as they have no mechanism to protect them from multiple users and no mechanism to ensure the equivalent of an atomic commit. If multiple people make edits to the same shapefile, the last one to save is the one that decides what is written, assuming the shapefile doesn't get corrupted in the mean time.</div></div><div><br></div><div>Cheers!</div><div>~Neil B.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 15, 2023 at 1:31 PM Árni Geirsson via QGIS-User <<a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello all QGIS and geopackage users.<div>I store my geopackages on a Synology RackStation NAS unit, like all other documents that are kept on a shared drive in the office. For larger datasets, the rendering is very slow, unless I open the properties dialog for the file in Windows and check the read only box. After that, the features are rendered blazingly fast. Nothing else is changed to see the dramatic difference in the rendering speed. Luckily, I don't need to edit many of the larger datasets, such as road networks and elevation contours and the geopackage can be kept read only. Shapefiles are not affected.</div><div>What explains this and does anyone know how to solve the problem? </div><div>Do other users experience this?</div><div><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div><font color="#000000">Árni Geirsson</font><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
QGIS-User mailing list<br>
<a href="mailto:QGIS-User@lists.osgeo.org" target="_blank">QGIS-User@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div>