Open jinnko opened 4 years ago
Unfortunately, no, concurrent DB access is not safe.
Yes, each job should use a separate DB and at the end you can use --merge
.
Thanks for the question. I'll update the documentation.
I should implement file-locking on the fingerprint database.
Thanks for the quick reply. I'd suggest file-locking is a nice-to-have feature and not essential. A mention in the docs would suffice.
Is it safe to run multiple invocations of findimagedupes with each accessing a single fingerprint DB file?
The context is an image store of just over 1TB of images and using
parallel
to generate the hashes across all CPU cores first. For example something like this:Is this safe, or should each job slot be using a separate DB file, then merge all the files at the end?