Best way to lauch concordance on many TMs

Dear community members,

I am developing an API which is launching a concordance search (searchtext) on many TMs. Currently, I am looping through a collection of TMs and launch the search function for each TM individually.

I was wondering if there is a possibility to launch the search function once on the whole collection of TMs directly. Can the searchtext function be applied to a collection of TMs or does it apply to a single TM only?

Thanks in advance for your advices.

regards,

 

Laurent

Parents
  • Additional information: as mentioned in a previous post, I am using the same approach as David Fritch. In order to improve performance, I changed my foreach loop into a Parallel.ForEach (Requires System.Threading and System.Threading.Tasks) in order to improve performance. You do not have a drastic improvement in speed but the few comparisons I made using both methods with segments with various lengths returning few or many segments definitely show an improvement.

    Just in case someone needs the information.

Reply
  • Additional information: as mentioned in a previous post, I am using the same approach as David Fritch. In order to improve performance, I changed my foreach loop into a Parallel.ForEach (Requires System.Threading and System.Threading.Tasks) in order to improve performance. You do not have a drastic improvement in speed but the few comparisons I made using both methods with segments with various lengths returning few or many segments definitely show an improvement.

    Just in case someone needs the information.

Children
No Data