Skip to main content
16-Pearl
Jun 28, 2023 7:02 PM UTC
Solved

Retrieving cad structure in lesser time

I increased execution time to 10

mins in thingworx. And i got all 10 level cad structure in 9 mins by using getStructure API WRS which had almost 40k cad docs.

 

Any other API is there to get all level CAD structure quickly?

Answer
Jul 6, 2023 11:15 AM UTC

Instead of retrieving the entire CAD structure in a single API call, you can break it down into smaller batches. This approach allows you to retrieve a portion of the structure at a time, reducing the overall processing time. Rather than waiting for the API response synchronously, you can implement an asynchronous processing mechanism. This way, you can initiate the API call and continue with other tasks, periodically checking for the completion status. Once the API call is finished, you can retrieve the CAD structure.

1 reply

Answer
Jul 6, 2023 11:15 AM UTC

Instead of retrieving the entire CAD structure in a single API call, you can break it down into smaller batches. This approach allows you to retrieve a portion of the structure at a time, reducing the overall processing time. Rather than waiting for the API response synchronously, you can implement an asynchronous processing mechanism. This way, you can initiate the API call and continue with other tasks, periodically checking for the completion status. Once the API call is finished, you can retrieve the CAD structure.

Translate