Hi,
We have a doubt concerning how to perform a search operation. We need to retrieve, given a series of values associated with a attribute from a category, which number of elements on the repository is associated with the category having that specific value assigned to the attribute. For instance, given the values 'a', 'b' and 'c' for the attribute 'letter' of the category 'alphabet', we want to obtain the following:
- Number N of elements on the repository associated with category 'alphabet', and having 'a' as value for the attribute 'letter'
- The same for 'b' and 'c'
At this moment, we are performing this through several search operations, one for each value of the attribute to check: looking up the number of results returned on each search we get the number of elements for each value. But this way takes too much delay, and we need to reduce it.
Is there a faster way? Is it possible to do it on a single operation?
Thanks in advance.