Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Takes a long time to retrieve data (metadata and properties) using the client whereas direct server calls(using postman) takes only 11 seconds #49

Open
udda89 opened this issue Jan 26, 2021 · 1 comment

Comments

@udda89
Copy link

udda89 commented Jan 26, 2021

I have a couple of IFC files which are around 80MB each

I tried using both US and EMEA services(Data Management and Model Derivative) but what I experience is to retrieve metadata and properties it takes a huge amount of time. Whereas I tested the same server calls (on EMEA) using postman and it took only 11 seconds.

Any advice on this matter ?

@xiaodongliang
Copy link
Collaborator

xiaodongliang commented Mar 9, 2021

@udda89 , same to Postman, JAVA SDK calls raw web services of Forge. The packaged methods do nothing special that would affect performance. Did you test with the sample scripts two_legged_bucket_translation_metadata.java ?

In addition, I am not sure the test scenario, while GET Metadata will not return 200 until the metadata & properties are extracted successfully. When it is not ready, it will return 202. Might it be possible when you tested with Postman, the previous GET metadata has been completed? Did you test with same IFC in JAVA SDK and Postman?

Note: in two_legged_bucket_translation_metadata.java, the second param of derivativesApi.translate is true (xAdsForce = true), which means it always post a new translation to translate the model again. So when GET:Metadata afterward, it will launch a new extraction. If your Postman does not set xAdsForce, it will not translate the original model again, and when GET:metadata, it will reuse the previous result.

anyway, just some analysis on top of my head. If you still have the issue, please contact forge.help@autodesk.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants