We have a bulk import process that leverages Quickfields to import and Workflow to find already existing documents and create links between them using a match by Account Number and a Date field. However, the Search Repository activity is taking a considerable amount of time to return values--on average 75% of the time, 6 seconds, to complete the entire workflow process, but with some taking over 20 seconds. Our investigation through the Workflow Stats indicates that the 'Account Number' field is pulling back as if it were a like search, and I wanted to turn that into a distinct parameter to see if that increased the search performance. I have included the search below, and I'd appreciate any feedback or insights into fine tuning it to help decrease the search time.
{[]:[Account Number]="%(RetrieveFieldValues_Account Number)"} & {[]:[Due Date]="%(RetrieveFieldValues_Due Date)"} & {LF:Name="*", Type="DB"} & {LF:LOOKIN="FolderPath"}