removing tags takes a long time
I have 2844 files selected. I want to remove 1 tag. dt istantly reports 2 photos are using that tag, whether I am sure. When clicking YES dt takes very long time (ca 5 minutes) to execute that action.
From the duration I assume it opens each file and checks for that tag - even if the knowledge about the 2 photos having this tag is already there.
#1 Updated by Tobias Ellinghaus over 2 years ago
- Status changed from New to Incomplete
- % Done changed from 0 to 20
What do you mean with "removing tags"? Deleting the tag entirely from darktable or detaching it from the images? I assume the latter? Looking at the code it seems to have the potential of being terribly slow indeed as it writes the XMP of all selected files, even when it wasn't affected.
#2 Updated by Tobias Ellinghaus over 2 years ago
- Status changed from Incomplete to Fixed
- % Done changed from 20 to 100
Applied in changeset darktable|c2531ba49e076dc118a6bff36322a29e2190be0c.
#4 Updated by David Schaefer over 2 years ago
Tested several times and the general issue is fixed. Thank you.
It still was slow in the following situation:
1 - using dt to read in image Ia in place Pa
2 - moving Ia to place Pb outside of dt
3 - using dt to read in image Ia in place Pb
(now we have 2 references to 1 image, one reference is dead)
4 - When I now select 2000 images and remove one of the tags from Ia it again takes several minutes.