Hi Janneke, On Sun, 29. Nov 2015 at 20:44:54 +0300, Janneke van Dijk wrote: > Using the field calculator either from the attribute table or from main > window with the attribute table closed both takes too long to be useful. Not > the actual calculation, but the saving of the edits. To be clear: I > originally used the update expression bar to update the selection, but all > three methods take too long to save.
That's because - as Matthias already said - the expression are evaluated for each record and the changed attribute value is temporary stored in QGIS. When you commit the changed records are iterated and a separate UPDATE statements is issued for each record. And that's what takes long - although an expensive view contributes to the time each UPDATE needs. The comment about the attribute table was just because for each change also the attribute table(s) UI is updated. So execution might be quicker if there are no open attribute tables. But the actual updates should perform the same from wherever you invoke the feature calculator. 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
signature.asc
Description: Digital signature
_______________________________________________ Qgis-user mailing list [email protected] List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
