Why is my search function really slow on folders with a lot of files?
I am trying to search files using this logic inside a Region (Which is a folder) and display them. The problem is on when there’s a lot of files (for example like 200k) it takes like 10 minutes to search, in folders with not a lot of files its really quick. What could be the best way to speed up the search? I tried using runspaces too but no success, the time to search didn’t change at all.
Why is my search function really slow on folders with a lot of files?
I am trying to search files using this logic inside a Region (Which is a folder) and display them. The problem is on when there’s a lot of files (for example like 200k) it takes like 10 minutes to search, in folders with not a lot of files its really quick. What could be the best way to speed up the search? I tried using runspaces too but no success, the time to search didn’t change at all.