It turns out that the sql table in which I search or filter has approximately 6000 records and when doing the search is very slow, then I would like to know how I can perform a search and that it is as fast as possible.

It turns out that the sql table in which I search or filter has approximately 6000 records and when doing the search is very slow, then I would like to know how I can perform a search and that it is as fast as possible.
Hello Pealpy,
Working with a table with 6,000 records should not cause any significant delays, unless the app runs on a slow hardware (older mobile devices for example).
The best way to optimize your query is to ensure you use delegable functions as much as possible. Please see this: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/delegation-list