Salesforce

Search limits using RSA ClearTrust API

« Go Back
Header
Search limits using RSA ClearTrust API
a18678-Search-limits-using-RSA-ClearTrust-API
Work in Progress
7,517.93
Article Content
 
RSA ClearTrust 5.0.1 Administrative Java API
RSA ClearTrust 5.5.1 Administrative Java API
RSA ClearTrust 5.5.2 Administrative Java API
ISparseData
Search limits using RSA ClearTrust API
Only a maximum of 1000 results are returned regardless of how many results should exist
By default, the Entitlements server throttles the number of records queried from a datastore to 1000 records. This is to legislate the volume of data queried to a manageable size to maintain overall system performance and throughput.
The JavaDoc documentation for the search method suggests the following:

    IAPIObject[] obj = sparseData.getByRange(0,Integer.MAX_VALUE);
    int returnedObjects = obj.length;

However, this actually is more restricted than the syntax suggests. In fact, the example would read as follows:

    IAPIObject[] obj = sparseData.getByRange(0,1000);
    int returnedObjects = obj.length;

This will now retrieve up to 1000 objects. The 1000 limit may be increased using an additional entry in the eserver.conf file. For example, to increase the value to 2000, do the following:

    cleartrust.eserver.api.max_object_count=2000

This approach must be used with caution, as inappropriate tuning may lead to implications in other parts of the overall system. Another approach is to use a series of queries to retrieve all the desired objects, for example:

    boolean moreEntries=true;
    int startVal=0;
    int maxRange=1000;
    IUserSearch userS = myServerProxy.searchUserObjects();
    ISparseData userISData = userS.search();
    while (moreEntries)
    {
           int endVal=startVal+maxRange;
           Object[] userOb = userISData.getByRange(startVal,endVal);
           System.out.println("Number =" + userOb.length+ ", Start at "+startVal+", end at "+endVal);
           if (userOb.length==0) moreEntries=false;
           //
           //TODO: Code to do the actual work on each object
           //
           startVal=endVal;
      }

000018813
Article Settings
External
Conversion
mbond
9/19/2003 2:14 AM
Admin6 Integration (R3 Propel)
Article Assignment
 
 
 
Article Properties
Published
Knowledge
000054706
Admin6 Integration (R3 Propel)
Katrina Nash
English

Powered by