Skip to main content
16-Pearl
June 28, 2023
Solved

Retrieving cad structure in lesser time

  • June 28, 2023
  • 1 reply
  • 847 views

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?

Best answer by

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
July 6, 2023

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.