Bug 501217

Summary: Confirm faces - same processes in the background
Product: [Applications] digikam Reporter: Andy <zunar>
Component: Faces-WorkflowAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: minor CC: metzpinguin
Priority: NOR    
Version First Reported In: 8.6.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 8.6.0
Sentry Crash Report:
Attachments: Output 20250308_112500
Output 20250308_121600

Description Andy 2025-03-08 10:36:22 UTC
Created attachment 179221 [details]
Output 20250308_112500

Hello,
During the last tests I noticed by chance that when confirming a face, there are several identical entries in the output. Maybe it is necessary for this to happen, but maybe you can reduce the number of steps here to reduce access to the database or to the photos. That is up to you to decide:

- It is triggered many times in a row.
"digikam.general: Detected change, triggering rescan of ....."

- The Huffman table is read or written several times. I cannot tell which. It is always the same values.

- The metadata is read several times.
"digikam.metaengine: Loading metadata with "Exiv2" backend ...."

Thanks
Andy
Comment 1 Maik Qualmann 2025-03-08 11:01:49 UTC
You have activated external monitoring of albums for changes. Do you really need this function? That means, do you change images while digiKam is running using other programs and would you like the changes to be updated immediately in digiKam? This external monitoring of albums for changes leads to increased updates and reading of the images.

Maik
Comment 2 Andy 2025-03-08 11:19:10 UTC
Created attachment 179222 [details]
Output 20250308_121600

Hi!

OK. It says monitoring of external programs. So I thought that changes by digikam itself were excluded.

I turn the option off and restart.

Attached is a new output. It is a bit shorter. The section with the Huffman type is still duplicated.

Thank you very much!
Andy
Comment 3 Maik Qualmann 2025-03-10 07:02:06 UTC
I don't see any errors in the debug logs. We just need to load the image to create the face thumbnail. This may use a different image loading method than what is set in the view (fast preview, full preview or RAW image). We also need to loop through the file to create a new unique file UUID since adding metadata has changed the file etc.

Maik