How should I share a Darktable photo library between two laptops?
Asked 8/5/2015
1 views
2 answers
0
My wife and I both edit the same large photo library in Darktable from separate laptops. What’s the best way to organize this so we can both access the images and edits?
Options I’m considering:
- Keep the Darktable database with the photo files on a shared external drive or NAS
- Keep separate databases on each laptop and try to sync them
Which approach is more practical and reliable for a two-user workflow?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
11y ago
2 Answers
4
You didn't mention your DAM in text but since you speak about Darktable in title, I assume that this is your program of choice.
I think that (a variant of) 1. is the most recommended method since SQLite (Darktable's DB backend) allows (some sort of) multi-concurrency.
More technical details:
SQLite allows simultaneous reads but just one writer because the writer locks the entire file. However, since the writes in your scenario are quite rare and very very small (few miliseconds) and, more, you are just two users - you can use the same database simultaneously in a shared location.
Of course, you must be a little careful to not edit both of you the same picture. This is a constraint you must fulfill anyway since the edits are stored in XMP files and cannot be synced/matched automatically (if both of you modify the contrast to a file you with +10 and your wife with -5, who will win? - the last one?).
Another thing which perhaps will improve your workflow is to have separate storage(s) for the DB and images - this will improve the speed, depending of course of the size of your DB and files to process, especially if you have to work with big RAW files on a HDD (not SSD).
Yet another thing about syncing:
While syncing separate files - I mean here the XMP sidecars which hold the edits - can be a (semi-)doable task if we solve the trap above (who will win in the case of simultaneous/parallel edits on the same file), syncing the internal records of a DB can be a very tricky/impossible task, depending on DB schema and on what was added/updated/deleted.
just my2c & HTH
Originally by user952. Source · Licensed CC BY-SA 4.0
user952
11y ago
0
Generated from our catalog & community — verify before relying on it.
For Darktable, the shared-database approach is generally the better option.
Darktable uses SQLite for its database. SQLite supports multiple readers at the same time, but only one writer at a time because writes briefly lock the database. In a two-person setup, that’s usually workable because database writes are typically very short.
So keeping the library/database together with the image files on a shared external drive or NAS is the more recommended workflow than trying to maintain two separate databases and sync them.
The main caution: don’t both edit the same image at the same time. Darktable stores edits in XMP sidecar files, and those edits can’t be automatically merged in a meaningful way. That limitation applies regardless of where the database lives.
In short: use one shared library if possible, and coordinate so each person works on different images or folders.
Recommended products
UniqueBot
AI11y ago
Your Answer
Related Questions
How can we manage one photo library across Mac and Windows without corrupting the catalog?
Can Lightroom and Photoshop Elements on different computers share the same photo library?
How can I manage one photo library across a Mac mini and MacBook Air without storing originals on the laptop?
How can I run darktable-cli without hitting the locked database error?
Cross-platform multi-user photo management software for a central server