The collection of images referred to in the title could be on a NAS accessed by the two computers or being stored on one computer and accessed by the other via a LAN. This testing was done with PL7.0.2 but some tests were repeated today with PL7.1.0.
The summary of the tests and the outcome are as follows:-
-
Two computers accessing one directory of images but only one computer at a time, this seems to work fine with DxPL(Win), according to my tests, providing only one computer has the directory open at any one time.
-
Two computers accessing the same directory of images at the same time, this rapidly turns into chaos because of the way the two copies of DxPL interact when a change is made by the other computer. If the file is a JPG and a keyword is added then a keyword added to a Virtual Copy could wind up being written to the image, according to tests I ran some time ago and reported to DxO Support and reran here.
Editing a single directory of files on two different systems:-
I started editing images on my i7-4790K, equipped with a 1050Ti GPU and then decided to export the images using a 5600G with an RTX 3060 to improve (reduce) the export times.
Although I could have copied the images between machines I chose to access the images in situ and accessed them via the LAN, similar to using a NAS drive.
So on the i7 I left PL7.0.2 running but âparkedâ on an empty directory and navigated to the images using PL7.0.2 on the 5600G and I exported the images successfully with no issues.
But I then noticed âpumpkinsâ in certain images (part of the Halloween pumpkin trail at Highdown Gardens) and decided to use DxPL to remove them. I started on the 5600G using VCs to âpreserveâ the original images and did the edits on the 5600G.
I then âparkedâ the 5600G DxPL on an empty directory and continued to edit the images on the i7.
The VC edits were in place on the i7 from the 5600G editing (there needs to be a delay of 20 seconds or so between making edits on the second system to ensure that the DOPs have been written to disk) and I continued further âRetouchingâ on the i7, navigating away from the directory to a âneutralâ directory (preferably empty of images) before re-discovering the directory on the 5600G.
Providing care is taken to ensure that only one machine has a directory open at any one time there appears to be no problem with âflip-floppingâ between the machines with respect to image editing.
So for edits it appears to be possible to have two machines working with and updating image edits and metadata at the same time providing each machine is accessing a different directory or, if updating the same directory, only one machine has the directory open at any one time.
Both machines must never be accessing the same directory at the same time.
During the tests I monitored the directory using âFolder Monitorâ, a free product available for Windows at https://www.nodesoft.com/foldermonitorand which uses .NET.
Folder Monitor submits a request to the Operating System to be informed of any file events for a designated directory (it is possible to watch more than one directory with FM, including subdirectories), the program then waits on an event that occurs for any of the watched directories.
In the case of FM the action taken when an event occurs is to report it.
DxPL almost certainly uses essentially the same mechanism to be informed that an event has occurred to the images in the directory of images on view in the product. DxPL then examines the event and the state of the files involved in that event and takes appropriate action which will be reflected in the application, database and the DOP.
One primary use for this mechanism is to detect when another program has made a metadata change to an image in view, changed âRatingâ, added a keyword etcâŚ
With files mounted on a NAS or accessed via a LAN the events FM monitors are frequently duplicated in the logs, i.e. an edit update made in DxPL that causes a DOP update in a local directory looks like this in the FM Log
Edit on local directory:-
2023-12-05 19:41:40.006: F:\___Beta DXO PL5 - Tests\Test 17 - Directory Name change (small directories)\Test 17 - Run 01\Test 17 - 01\P1107710.JPG.dop deleted
2023-12-05 19:41:40.183: F:\___Beta DXO PL5 - Tests\Test 17 - Directory Name change (small directories)\Test 17 - Run 01\Test 17 - 01\P1107710.JPG.dop created
2023-12-05 19:41:40.241: F:\___Beta DXO PL5 - Tests\Test 17 - Directory Name change (small directories)\Test 17 - Run 01\Test 17 - 01\P1107710.JPG.dop modified
but like this when the file is accessed via a LAN
Edit in NAS Directory:-
2023-11-27 18:00:14.521: Y:\Test\Photos\Test 17 - Directory Name change (small directories)\Test 17 - Run 01 - PL670\Test 17 - 05\P1107801.JPG.dop deleted
2023-11-27 18:00:14.615: Y:\Test\Photos\Test 17 - Directory Name change (small directories)\Test 17 - Run 01 - PL670\Test 17 - 05\P1107801.JPG.dop deleted
2023-11-27 18:00:14.616: Y:\Test\Photos\Test 17 - Directory Name change (small directories)\Test 17 - Run 01 - PL670\Test 17 - 05\P1107801.JPG.dop created
2023-11-27 18:00:14.616: Y:\Test\Photos\Test 17 - Directory Name change (small directories)\Test 17 - Run 01 - PL670\Test 17 - 05\P1107801.JPG.dop modified
The key âgiveawayâ is two DOP delete events when the file is mounted on a NAS or accessed via a LAN. Sometimes there are also two file create events, i.e. how can you delete a file more than once or create a file more than once?
However, I created a Python script to do similar monitoring using a Python WatchDog library and got the same issues, as shown below!?
Python File Monitor (PFM):-
Edit in NAS Directory:-
2023-11-27 18:00:14.529424 - FILE - Y:\TEST\PHOTOS\TEST 17 - DIRECTORY NAME CHANGE (SMALL DIRECTORIES)\TEST 17 - RUN 01 - PL670\Test 17 - 05\P1107801.JPG.dop - FILE - deleted
2023-11-27 18:00:14.547417 - FILE - Y:\TEST\PHOTOS\TEST 17 - DIRECTORY NAME CHANGE (SMALL DIRECTORIES)\TEST 17 - RUN 01 - PL670\Test 17 - 05\P1107801.JPG.dop - FILE - deleted
2023-11-27 18:00:14.565411 - FILE - Y:\TEST\PHOTOS\TEST 17 - DIRECTORY NAME CHANGE (SMALL DIRECTORIES)\TEST 17 - RUN 01 - PL670\Test 17 - 05\P1107801.JPG.dop - FILE - created
2023-11-27 18:00:14.577408 - FILE - Y:\TEST\PHOTOS\TEST 17 - DIRECTORY NAME CHANGE (SMALL DIRECTORIES)\TEST 17 - RUN 01 - PL670\Test 17 - 05\P1107801.JPG.dop - FILE - modified
I also ran tests updating two adjacent directories on the NAS which worked fine until I deliberately moved DxPL on one of the machines to the same directory as the other machine and when it came time to write a DOP all hell broke loose.
I will add details of the update tests and the problems when two machines are accessing the same directory with DxPL in a subsequent post.