The ask, help a canvas app maker address a performance issue querying and filtering app data. Their Power App, like most apps, worked perfectly when there were only a few hundred records. Now, their end-users are working with thousands of records with the expectation that the data set will grow exponentially as additional users are onboarded.
The suggested resolution, create dedicated columns for data filtering. Because the data set is larger and growing quickly, their apps needs to consider delegable operations to process these data records. Though an oversimplified definition, delegation is the ability of a tabular data source to correctly return queried results and if delegation isn’t possible, then the returned results can’t always be trusted.
Because Dataverse is this app’s data source, review Microsoft’s current list of delegable functions and operations. And worth noting, the “Number” data type can be filtered against for most operations. However, for the few unavailable operations, the “String” data type is delegable. Likewise, “String” is delegable in a few instances where “Choice” won’t work:

With the above overlap in delegable operations, to address this app maker’s performance issue, they can create a new “Single line of text” Dataverse column, then in their existing operations (Power Automate cloud flow), copy the value here from their current “Number” or “Choice” data column.
Now, with the value copied to a column with more delegable operations, their app can filter against this dedicated filter column, addressing app performance before the data set grows anymore:

Conclusion:
This approach will work for any tabular data source including SharePoint Online. And because the newly created data column isn’t meant for the end-user interaction, it can be hidden and only filtered against in the background.
“I learned that racism, like most systems of oppression, isn’t about bad people doing terrible things to people who are different from them but instead is a way of maintaining power for certain groups at the expense of others.”
Alicia Garza
#BlackLivesMatter