How does the AdvancedStorage plugin handle changes to data/directories?

Hi,

This is probably a simple question, but I just wanted to get some clarifications about how the indexing process works for the combination of the advanced storage and PostgreSQL as the indexing database.

Currently, I have Orthanc running with the AdvancedStorage plugin which is indexing several mounted directories.

I am wondering what the practical implications are for Orthanc and the PostgreSQL database when:

  1. Files are added/deleted from one of the indexed directories, or
  2. Entire directories are removed from the AdvancedStorage configuration file

Is Orthanc immediately aware of added/deleted files within a directory and this is reflected in the Orthanc GUI?

I know that when a directory is added to thethe configuration file and Orthanc is restarted that is is indexed and included. When the directory is removed from the configuration, are the entries removed from the databased and thus not shown in the GUI?

Thanks for your help!

Hi,

There is an “indexer” thread that cycles to all folders and subfolders and check if a file/folder is new or has been deleted since the last run. So, if you have a huge amount of files, cycling through all the files might take a long time and therefore there might be some large delays …

HTH,

Alain

Thanks for the response.

So, if some files are deleted from an indexed directory or an entire indexed directory is removed from the AdvancedStorage config, once detected, the relevant files will be removed from the SQL index database?

yes