I know this may be hard to answer out of context, but are there any gotchas or things to be aware of when using
AsParallel within a Sitecore scheduled task?
We have a scheduled task in our solution which generates an XML feed of all the products in our site (~500 products, each with ~10 subitems). Will using AsParallel to loop over these give much of a performance benefit, or could this actually cause problems in other areas due to using up all available threads?
I know we can do timing/profiling locally to analyse the situation, but this does not really account for the impact to a CM/CD server which would be doing other stuff as well.
PS we're using ContentSearch to retrieve the products, not Sitecore query before anyone tells me off! ;-)