msgraph-sdk-java
msgraph-sdk-java copied to clipboard
OneDrive API responds slow
SDK version using:
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-identity</artifactId>
<version>1.4.6</version>
</dependency>
<dependency>
<groupId>com.microsoft.graph</groupId>
<artifactId>microsoft-graph</artifactId>
<version>5.17.0</version>
</dependency>
We tried with the 5.36.0 version as well. <version>5.36.0</version>
Expected behavior
API should respond faster
Actual behavior
API responds slowly for some files and takes 1 or 2 minutes. All files are the same in size and content, however, both APIs responds slow. File Size: 494 KB
Steps to reproduce the behavior
We are consuming the following two APIs which we are running it in the multiple threads. So, irrespective of throttling, we observed like sometimes the API responds after 1 or 2 minutes or more. This doesn't happens for any particular file, but happens with any file. Note: We are doing testing by keeping the same file with size and content in one drive folder. Intent: Downloading of all the files quickly.
APIs:
- oneDriveService.getGraphServiceClient() .users(itemInfo.getMetadata().get(userId) .drive() .items(itemInfo.getMetadata().get(itemId) .content() .buildRequest() .get())
- oneDriveService.getGraphServiceClient() .users(userId) .drive() .items(itemId) .permissions() .buildRequest() .get()
Thanks