Skip to main content
Participant
June 20, 2024
Answered

Lightroom Reading Every File on SMB Mounted Drive on Every Edit

  • June 20, 2024
  • 3 replies
  • 502 views

Seemingly recently, I've noticed that with every change I make to a local file Lightroom goes through and tries to read every single image in my SMB mounted drive. I watched iotop on my nas drive and can confirm that Lightroom is "reading" every single file with every, single, change. And again to reiterate, the files I am changing are local on this machine. This is making editing painfully slow as it's sending/receiving so much garbage data (I have 40k+ photos). This also makes closing the application take minutes as it's "writing XMP files" for files I haven't touched this session... The drive is mounted via SMB in Windows. Permissions are correct on the NAS side as I can read/write from Windows Explorer just fine.

Temporarily I can disconnect the drive but that's kind of a pain long term to have to re-add the drive in Windows.

Any thoughts or ideas I can try? Thank you.

LightroomCC Version: 13.3.1
Windows 11 Pro
Version 23H2
OS build 22631.3737
Processor 12th Gen Intel(R) Core(TM) i7-12700K 3.60 GHz
Installed RAM 32.0 GB (31.7 GB usable)

This topic has been closed for replies.
Correct answer johnrellis

It occurs to me that you might be tripping over this bug:

https://community.adobe.com/t5/lightroom-classic-bugs/p-save-metadata-to-file-doesn-t-always-set-metadata-status-to-up-to-date/idi-p/14641120

 

where LR thinks metadata has changed immediately after it saves metadata to the file. If you have set the option Catalog Settings > Metadata > Automatically Write Changes To XMP, then LR will loop infinitely resaving metadata to XMP for all your files.  Part of that process involves read the XMP files as well.

 

To see if you're tripping over the bug,

 

1. Disable Catalog Settings > Metadata > Automatically Write Changes To XMP. 

 

2. In the Library Filter bar's Metadata browser, add the column Metadata Status and select all files that have status Has Been Changed.

 

3. Select all the displayed files and do Metadata > Save Metadata To File.

 

4. When it completes, do many of the files switch back to status Has Been Changed? If so, then you're tripping over the bug.

3 replies

johnrellis
johnrellisCorrect answer
Legend
June 24, 2024

It occurs to me that you might be tripping over this bug:

https://community.adobe.com/t5/lightroom-classic-bugs/p-save-metadata-to-file-doesn-t-always-set-metadata-status-to-up-to-date/idi-p/14641120

 

where LR thinks metadata has changed immediately after it saves metadata to the file. If you have set the option Catalog Settings > Metadata > Automatically Write Changes To XMP, then LR will loop infinitely resaving metadata to XMP for all your files.  Part of that process involves read the XMP files as well.

 

To see if you're tripping over the bug,

 

1. Disable Catalog Settings > Metadata > Automatically Write Changes To XMP. 

 

2. In the Library Filter bar's Metadata browser, add the column Metadata Status and select all files that have status Has Been Changed.

 

3. Select all the displayed files and do Metadata > Save Metadata To File.

 

4. When it completes, do many of the files switch back to status Has Been Changed? If so, then you're tripping over the bug.

johnrellis
Legend
June 21, 2024

As a next step, you could see if your current catalog database has gotten polluted somehow. Make a new temporary catalog and import all your existing photos  using the Add option (very important!); in the Import window, set the option File Handling > Build Previews to Minimal to speed up the import process greatly.

 

If the problem occurs with the temporary catalog, that rules out a catalog problem. If it doesn't occur, we can suggest some ways to possibly clean up the current catalog.

GoldingD
Legend
June 21, 2024

Not sure if your SMB mounted drive refers to a NAS or other server share, If something completely different.

 

But, Perhaps something to look at. If a NAS or Server share. Bring up your import screen, see if that NAS or other SMB is selected by default, if so, undo that, close the Import screen, then re-enter the import screen and make sure that stuck.

 

For some unknown reason, I was having an issue post LrC 13.3 where if I brought up the Import screen, it would take a good 15 seconds for the screen to show up, with LrC basically frozen until it finally appeared. What the Heck? I was only bring up the Import as to look at something for another member, and frig, what the heck. Finally noticed the Import source was showing my NAS and the NAS was selected. I never do that. So selected the hard drive the catalog was on (internal SSD) and victory, that problem went away.

 

So something odd going on with NAS, even if one does not involve LrC with the NAS.