I think for the OP there is some confusion on performing more than one search versus having more than one constraint on a single search. In these hypotheticals, and in most any instances of data retrieval, there will be no need for more than one search, but may need more than one constraint.

@robbie.macintosh the difference in the amount of time the server required to parse through a list of 100,000 records or 1 million records is minimal and doesn’t really affect too much the total time for the data to be fetched and returned. The amount of data to be returned can impact the speed at which the data is returned from the server and then populated in the clients device (ie: being shown on screen).

So, what are you actually searching, is that a Msg Template, a group, a customer or a segment?

What is the structure of your database and how are fields related to other data types?

I believe you may be on a path of expecting a need to put multiple filters, using the :filtered operator, which is not necessary.

If you are searching for a group, and the group data type has a field that is related to customer (can be list of customers or single customer - doesn’t make a difference) you can have a constraint that the group’s customer field either contains or is equal to the customer you are using as a constraint value. Also, you add another constraint that will constrain the search by segment, so long as the Group data type has a field that is related to a segment.

Lastly, since in the example quoted, you are asking if looking for a group, you do not need to constrain by group because you are searching for groups, however, if you already know which group it is, there is no reason to search with constraints for customer or segment and can just show the group data if it were already known.

Then search for group, with constraints for the customer and the segment…but if you have multiple groups that will belong to the same customer and segment, you will have more than one value returned.

1 Like