REST API - how page by page loading works in detail? What is result order?
We load big number of RTC WorkItems page by page (one page contains 100 records), by following URLs:
|
Accepted answer
I'm not an RTC developer so I only state from my experience and observation.
1. The ID should refer to a "query cache". The query should be sent to the database only once, and the server keeps the query result in cache. When you request the next page of the query, the server will pick up items from the cache, not send the query to the database again. 2. The result appears to be order by work item ID - the reportable REST API does not explicitly specify any order parameters. Not sure what you mean by "global WorkItem list". If you mean the result set, it should remain constant, unless (see below). 3. If a work item gets changed, the current attributes are returned when you load the page - it appears that the query cache only holds the work item IDs. 4. If a work item is created after the query is executed, it will not appear in the query result if you refer to the existing query (with the ID). 5. HOWEVER, if a work item is deleted, it will be removed from the query result. I have not done extensive testing to see how it will affect the ordering and pagination of the query result. Jan Pechanec selected this answer as the correct answer
Comments
Jan Pechanec
commented May 13 '16, 3:50 p.m.
Thanks much for quick answer!
Donald Nong
commented May 15 '16, 7:56 p.m.
Deleting work items is not a common use case. In fact, many users have a hard time finding out who deleted their work items - currently there is no logging at all. So unless you have a need for such use case, do not give the permission to anybody. By default, no roles have the Delete Work Item permission.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.