Skip to content

Commit adb930b

Browse files
committedOct 19, 2018
Speed up getFeatures query by using a proper QgsFeatureRequest
1 parent 71e2a6b commit adb930b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎python/plugins/processing/gui/AlgorithmExecutor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def execute_in_place_run(alg, parameters, context=None, feedback=None, raise_exc
183183
else:
184184
active_layer.deleteFeature(f.id())
185185
# Get the new ids
186-
old_ids = set([f.id() for f in active_layer.getFeatures()])
186+
old_ids = set([f.id() for f in active_layer.getFeatures(req)])
187187
if not active_layer.addFeatures(new_features):
188188
raise QgsProcessingException(tr("Error adding processed features back into the layer."))
189189
new_ids = set([f.id() for f in active_layer.getFeatures(req)])

0 commit comments

Comments
 (0)
Please sign in to comment.