Can somebody explain what path to use Paralle.Invoke
or Parallel.ForEach
in this scenario:
- query large data from database let's say 1000 records
- parallel process this data, save the records back to db, eventually insert new records etc
So the data will be returned like a List and then I have specific methods that will process certain records from the list based on a category property.
What should I use: .ForEach or .Invoke?