Welcome to the Jazz Community Forum
Speeding up Reportable REST API calls

I have noticed that retrieving attribute data and primary text for all artifacts within a specified module via the Reportable REST Text Endpoint (for example: http://server/rm/publish/text?moduleURI=module) is slow if the module has a lot of artifacts. For example, to pull all artifacts and their attribute values for a module that has 4000 artifacts takes over 5 minutes. Are there any techniques that can be used to speed this up?
3 answers


Comments

By "views data schema" are you referring to "module views" referenced in the supported artifacts formats section at the bottom of the Reportable REST documentation?

Yes, it just makes more sense to get what exactly you need using a view than iterate through all the artifacts one by one.
1 vote

Using the views API, it requires a "projectURI" parameter. Is there anyway to get this via API? It's not returned by the Get Configuration Context Client API

As Davyd Norris mentioned, you can fetch the artifacts page by page using the "size" and "pos" parameters in your URL. This helps reduce response time and server load.
Example:
http://server/rm/publish/resources?moduleURI=moduleurl&size=1000&pos=0