On jeudi 28 novembre 2019 20:19:10 CET Shane Carey wrote: > Hi, > > I'm doing some processing with Pyqgis and after processing, the file > remains locked and eventually I get: > ERROR: Too many connections: max 64
All I can say is that this error messages comes from Spatialite that can only handle 64 connections in a process at most. I did a fix (don't remember when, but must be included in QGIS 3.4) in the QGIS OGR provider to be able to open GeoPackage datasets (since the OGR GeoPackage driver enables Spatialite on them) that has many layers (so that they share the same connection). Not sure about the specificities of your use case. Even -- Spatialys - Geospatial professional services http://www.spatialys.com _______________________________________________ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer