[Qgis-developer] Grouping insert/update when sending to PostGIS

Rémi Cura remi.cura at gmail.com
Thu May 28 08:07:32 PDT 2015


Hey Jürgen,
this doesn't explain why each operations isn't grouped.


For instance all the addFeatures are grouped into one transaction, but not
into one statement.
Cheers,

Rémi-C

2015-05-28 16:39 GMT+02:00 Jürgen E. <jef at norbit.de>:

> Hi Rémi,
>
> On Thu, 28. May 2015 at 12:06:22 +0200, Rémi Cura wrote:
> > When making several edit on the layer, then saving the edits.
> > All the edits are send one by one to the database (though in the same
> > transaction).
>
> That's because of the provider interface.  For vector data providers
> addFeatures, deleteFeatures, changeAttributeValues and
> changeGeometryValues are
> independant operations - which therefore are also done in separate
> transactions.
>
>
> Jürgen
>
> --
> Jürgen E. Fischer           norBIT GmbH             Tel. +49-4931-918175-31
> Dipl.-Inf. (FH)             Rheinstraße 13          Fax. +49-4931-918175-50
> Software Engineer           D-26506 Norden
> http://www.norbit.de
> QGIS release manager (PSC)  Germany                    IRC: jef on FreeNode
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150528/142f2b69/attachment.html>


More information about the Qgis-developer mailing list