Forum Discussion
Anonymous
6 years agoNot applicable
List.Contains() is slow
Hi, I am using = Table.SelectRows(Table1, each List.Contains(List, [UID])) to filter out 300 categories from a table that has 1.6mil rows. However, it is loading very slow when I apply the query ...
- 6 years ago
Hi Anonymous ,
Are you using a direct query mode?Why not filter the table in table view?
Best Regards,
KellyDid I answer your question? Mark my post as a solution!
ImkeF
6 years agoCommunity Champion
Hi Anonymous
this could be caused by the list not being buffered.
So whatever step you're referencing with "List", make sure to wrap it into a List.Buffer-function.
kemiogrst
1 year agoNew Member
I would like to know how many items a buffered list can perform well before starting to get slow when called inside a "List.Contains" function. I tried with about 5k items and it seems good, but not with 350K items.
I usually use buffered lists to filter values in tables with codes like this:
If List.Contains(list, [field]) then true else false
Thanks in advance.