How can I combine two datatables without using a for each or filter?

Hi @Enzo,

For each or For each row are not slow. That is a myth. Yes linq query may be a little faster but I am quite sure the standard activites themselves use linq query in the background / source code. So looking to avoid using well structured standard activities is not what I would recommend. Standard activities are also easy to understand and comprehend than a linq query to all in your team / organisation. Nothing against linq, but the forum lately is so focused on using linq that they forget standard activities are not slow in comparision.

See the test results here:
There is no need to try to avoid For Each loops on large amounts of data - Help / Studio - UiPath Community Forum

You have to also evaluate other criteria as stated in this post : LINQ vs Loops like for, for each and while - Help / Something Else - UiPath Community Forum

1 Like