How to efficiently filter a datatable in Pega?
I have a data table that contains over 10k records. I want to efficiently remove the records matching certain conditions.
I tried a solution which involves creating a new data table and importing (with list loop) a data row array matching conditions but it takes a very long time which disqualifies it from being used in the solution.
@KasiaM40 This is something you'll want to do in a script using C# as the slight overhead of running via automation can get amplified at that scale. You can pass your DataTable into the script as a parameter and then filter it and return a new filtered DataTable. If you need an example, I can probably create one. Your filtering would be specific to your scenario and you'd need to understand at least a little C# to filter what you need though.
https://stackoverflow.com/questions/13012585/how-i-can-filter-a-datatable