Hi,
I am wondering what will be the most efficient way to use the Search Repository activity.
The workflow that I am working on has one simple objective. Migrate entries to the another volume.
The folder structure is:
Repository\Archive:
...\Department A\(50 to 500 subfolders + thousands of documents)
...\Department B\(50 to 500 subfolders + thousands of documents)
...\Department C\(50 to 500 subfolders + thousands of documents)
...\Department D\(50 to 500 subfolders + thousands of documents)
and so forth, as there are 10 departmental folders.
My doubt is about what approach would return the entries that need to be migrated faster.
Option 1: Search pretty much everywhere:
({LF:Volname<>"NEWVOLUME"}) & {LF:LOOKIN="VFCLF8\Archive"}
Option 2: Using Find Entries it gets all the departmental folders, and then using Search Repository it gets the entries that need to be migrated for each department:
({LF:Volname<>"NEWVOLUME"}) & {LF:LOOKIN="VFCLF8\Archive\%(ForEachFolder_CurrentEntry_Name)"}
I have done some testing and to get the entries for the first department (option 2) is faster than searching for all. When only the 10th folder will have entries to migrate, will it still be faster? Or would it be better to change the approach after the first 4 or 5 folders?
Thanks!