| Summary: | Metadata sync reloads all image data unnecessarily (SLOW on network drives). | ||
|---|---|---|---|
| Product: | [Applications] digikam | Reporter: | fotograaf <fotograaf> |
| Component: | Metadata-Engine | Assignee: | Digikam Developers <digikam-bugs-null> |
| Status: | REPORTED --- | ||
| Severity: | normal | CC: | caulier.gilles, metzpinguin |
| Priority: | NOR | ||
| Version First Reported In: | 8.7.0 | ||
| Target Milestone: | --- | ||
| Platform: | Mint (Ubuntu based) | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
fotograaf
2025-09-05 15:54:59 UTC
Unfortunately, the file metadata needs to be reread. While writing tags, important file data changed, such as the file size or the unique file UUID. To calculate the file UUID, the entire file must be read. This must be updated again so that the information in the database is back in sync. We could speed things up a bit if only writing to sidecars was enabled. In this case, only the modification date would need to be updated. Maik (In reply to Maik Qualmann from comment #1) > Unfortunately, the file metadata needs to be reread. While writing tags, > important file data changed, such as the file size or the unique file UUID. > To calculate the file UUID, the entire file must be read. This must be > updated again so that the information in the database is back in sync. > We could speed things up a bit if only writing to sidecars was enabled. In > this case, only the modification date would need to be updated. > > Maik I see your point. You mean that for Jpegs you compute a UUID, like a hash or a checksum - I get that. It would completely solve my problem if you could only fix this for sidecar files. My problem is entirely with managing raw files, and of course these are much bigger than jpegs. So fixing this would improve performance on the largest files, where it makes the biggest difference! >I see your point. You mean that for Jpegs you compute a UUID, like a hash or a checksum - I get that.
It's a hash computed on first kb of the file, not whole file.
Gilles Caulier
Not quite. Even UUID version V2 already read blocks at the beginning and end of the file. UUID version V3 also reads blocks in the middle of the file. It turned out that V2 wasn't unambiguous enough, for example, with TIFF files. Nevertheless, V3 is not slower than V2. It's important to remember that even on network drives, the file is already in the disk cache, simply by reading the metadata. Maik |