The performance of query records type

I have a question about the performance of data processing.

I have a query a list from record type A, and now I want to filter some data from the data I queried. I have two ways to do that, one is use query record type and add a filter to get the data I want, another is I use logic function to get the data from the list I queried.  My question is, is there a big performance difference between these two solutions? If yes which way is preferred. If no how about CDT.  Because when I code in Java, our strategy is better to query the database only once. But I'm not sure is this suit for Appian. But I think records type has cache like Redis, so even query the record type too much times, it will not cause performance problems. But I'm not sure if my thought is right?

  Discussion posts and replies are publicly visible