Hi Everyone,
I can’t give an easy answer, but maybe I can shed some light on the missing “total count” method.
The default cursoring behaviour with Tamino 3.1 is: don’t do anything.
Tamino 3.1 still supports the former cursoring mechanism: specify a start position and page size after the _xql verb, for example:
/db/coll?_xql(1,1)=/cd
The ino:response for this query contains the cursor information like this:
<ino:cursor ino:count=“3”>
<ino:first ino:href=“?_XQL(1,1)=/cd” />
<ino:next ino:href=“?_XQL(2,1)=/cd” />
<ino:last ino:href=“?_XQL(3,1)=/cd” />
</ino:cursor>
Here the “total count” is given (ino:count).
If one performs the same query using the new cursoring mechanism:
/db/coll?_connect=*
/db/coll?_sessionid=11&_sessionkey=10514&_cursor=open&_scroll=yes&_xql=/cd
/db/coll?_sessionid=11&_sessionkey=19919&_cursor=fetch&_handle=1&_position=1&_quantity=1
The cursor information in the ino:response is different:
<ino:cursor ino:handle=“1”>
<ino:current ino:position=“1” ino:quantity=“1” />
<ino:next ino:position=“2” />
</ino:cursor>
There is no “total count” information now. The most information that Tamino gives is current, previous and next position.
I don’t know if the intention behind this is to allow for more dynamic handling of results (Tamino updates cursor by adding new instances to it) but it seems to at least allow for that possibility.
The only way that we have found to get a total count is to perform a count query. If the performance of a particular count seems unreasonable, post the query to the forums.
Cheers,
Trevor.
#webMethods-Tamino-XML-Server-APIs#webMethods#API-Management