I am posting a DQL query to queryService, let's say something like this:
<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Header>
<ServiceContext ...
token="temporary/jsdi9-23850uvj9023j4509u">
<Identities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="RepositoryIdentity"
repositoryName="myrepo"
password="me"
userName="blah"/>
<Profiles xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ns4:ContentTransferProfile"
isProcessOLELinks="false"
allowAsyncContentTransfer="false"
allowCachedContentTransfer="false"
transferMode="BASE64"/>
</ServiceContext>
</S:Header>
<S:Body>
<ns7:execute ...
<query xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ns8:PassthroughQuery"
queryString="select * from dm_document order by r_object_id">
<ns8:repositories>myrepo</ns8:repositories>
</query>
<execution maxResultPerSource="0" maxResultCount="500" startingIndex="0"/>
</ns7:execute>
</S:Body>
</S:Envelope>
If the query gets 5000 results, I'll be sending the query back 10 times (incrementing maxResultCount by 500). All works great if I have an "order by" clause in the query. But if I don't order the results at the query level, I sometimes get repeating rows betweeen each iteration - which makes me think that the query is being run new each time I run it - so with no order some of the results will overlap. Would registering @ ServiceContext to get a registered security token session-ize this enough to remove this issue - or is there another solution? Seems a waste to re-run the query every time I'm incrementing the startingIndex. FWIW, I'm creating the SOAP request manually and posting/parsing it myself (it's a test script written in TCL for QA to validate source data against Documentum).
Thanks,
Jamie