Hello Yongwei,
to your questions:
1) The reason to add the additional filter [true()] for the count query was a multi-user test for X-Application. Within a multi user scenario the result of the count became invalid.
2) According to my colleagues, the problem should be fixed with Tamino 3.1.1.4. However, we ? the X-Application team - did not change the code of our TaminoStore class.
3) The difference is the performance of the count function. With the filter, the optimization to evaluate the function is disabled. If you remove the filter, you should speed up the execution of the count.
Hint: you can use also the $SIZE for the select attribute of the display tag if counting the document set every time a user invokes a page is to expensive.
If you decide to remove the additional filter from the source code because you are using Tamino 3.1.1.4 (or greater), let us know if you have problems with the count functionality. We will forward the problem directly to the Tamino development group.
Many thanks,
Christian.
#Tamino#webMethods#API-Management