<p dir="ltr"><br>
On 27 Nov 2015 10:18 PM, "Janneke van Dijk" <<a href="mailto:janneke.qgis@gmail.com">janneke.qgis@gmail.com</a>> wrote:<br>
><br>
> Dear list,<br>
><br>
> I have an updateable spatial view in Postgres loaded into QGIS 2.10. When I update 6999 records in this view in the db manager with the following statement:<br>
> update v_prepare_assessment_id SET districtid = 8 where locationid > 13000 and locationid < 20000<br>
> it takes 2.7 seconds to complete.<br>
><br>
> When I open the attribute table, select the same records, then use the update bar in the top to update the districtid to 8, using 'update selected' , then save edits, it takes more than 10 minutes (after which I closed the project).<br>
><br>
> Doing the same update directly on the attribute table of the underlying postgres table works nicely (takes about 3 seconds) after save edits.<br>
><br>
> Does anyone know why the update via the attribute table on the view takes so long as to be unusable, while the db manager works nicely with the view? Seeing that working directly on the underlying table from the attribute table works well too it's seems to be a combination of the attribute table approach with an updateable view that seems to cause the issue.<br>
><br>
> Thanks for any thoughts on the matter,</p>
<p dir="ltr">Please try with 2.12.1 or the current nightly snapshots.</p>
<p dir="ltr">I made a change since 2.12 which may have improved this already.</p>
<p dir="ltr">Nyall<br>
><br>
> Janneke<br>
> _______________________________________________<br>
> Qgis-user mailing list<br>
> <a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></p>