Bug 227814

Summary: HUB : new option to synchronize immediately files metadata or when application is closed
Product: [Applications] digikam Reporter: Michal Thoma <michal>
Component: Metadata-HubAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: bruno.leon, caulier.gilles, docali, gaetan, julien.t43+kde, thomascwells, veaceslav.munteanu90, wl-chmw
Priority: NOR    
Version: 4.3.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 5.0.0
Sentry Crash Report:

Description Michal Thoma 2010-02-20 14:56:30 UTC
Version:           1.1.0 (using KDE 4.4.0)
OS:                Linux
Installed from:    Ubuntu Packages

I was just tagging huge collection of images during which I experienced some inconvenience with current metedata writing policy in Digikam.

In Preferences i can decide if I want to write certain metadata to files or store it in database only (faster).

When I select to write metadata to files, the changing of rating, captions or anything immediately triggers writing new values to files. Though this can significantly slow down workflow when I want to tag huge collection of of files.

So I would like to metadata to be written to database only and synchronize it later. Right now I have to do this:

1 - Unchecking all six options in Metadata Preferences dialog ("Save image tag as Keywords in metadata embeded in files" and others )
2 - Doing my taging
3 - Checking again all 6 options
4 - Triggering metadata synchronization of selected files or all files.

It's quite apparent that this is pretty inconvenient. So I would like to have single opition to prevent immediate writing metadata. Preferably the button for turing this behaviour on and off should be somewhere easily accesible - in status bar or so.

Another suggestion for this issue was alredy submitead as delayed writing of metadata here: https://bugs.kde.org/show_bug.cgi?id=218730
Comment 1 caulier.gilles 2010-06-07 10:07:53 UTC
*** Bug 218730 has been marked as a duplicate of this bug. ***
Comment 2 julien.t43+kde 2011-08-22 03:10:03 UTC
same discussion than here

http://digikam.1695700.n4.nabble.com/Digikam-not-writing-metadata-caption-tag-rating-td3258157.html

seems there is work in progress but ...
Comment 3 caulier.gilles 2011-12-17 09:38:24 UTC
Michal,

This file still valid using digiKam 2.x serie ?

Gilles Caulier
Comment 4 Michal Thoma 2011-12-17 13:07:41 UTC
Yes, this issue is still valid. With 2.x have more options to write metadata (to images in album, to selected images) but still first we have to go to preferences check/uncheck writing various metadata.

We still need option to decide if metadata should be written immediately after assigning or only manually. 

Also we need to remember to which images we made changes (if we don't want to synchronize whole collection). So it would be nice if database has some property to track which images needs to synchronize metadata.

I also had bad experience using all collection metadata synchronize - all images in collection were affected - even those which were synchronized with database. It's quite bad because updating all images in collection brings a danger of some corruption, it's time consuming and also creates problem with incremental&differential backups.
Comment 5 julien.t43+kde 2012-04-14 21:24:35 UTC
having a searchable meta metalastreaddate, metalastwritedate, metalastchange could be a first stop to help. no ?
For now, there is no way (I believe) to search for Images with modified metadata.
Comment 6 julien.t43+kde 2012-07-07 01:53:31 UTC
Seems still valid in 2.6.0.
A menu entrance (and a possible shortcut in configure shortcuts) in configuration "synchronize Metadata" would be nice.
Still, as said previously, searchable metadata about the sync status would be very helpful, visible or not by default.
Comment 7 julien.t43+kde 2012-11-14 00:37:08 UTC
Related Bug 310067 - Optional finegrained metadata for Modified/Access/Changed time and Digikam Last Read/Write
Comment 8 Thomas 2013-01-30 16:03:24 UTC
Bump. 
Still valid using version 2.8.0.
Comment 9 caulier.gilles 2014-08-28 15:56:46 UTC
*** Bug 222401 has been marked as a duplicate of this bug. ***
Comment 10 caulier.gilles 2014-09-04 08:51:35 UTC
*** Bug 173632 has been marked as a duplicate of this bug. ***
Comment 11 Veaceslav Munteanu 2016-03-02 12:38:28 UTC
Digikam 5.0.0 support Lazy Syncronization, which can be enabled in Metadatasettings.

Lazy Syncronization will only sync to database and will write to files once you press the sync button or at application exit.