cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Creating and getting shared links through the API is way too slow

Creating and getting shared links through the API is way too slow

said1296
New member | Level 2

Hi,

 

I'm using Dropbox API v2 to generate and get shared links for thousands of files.

 

Both requests are taking in average 1.7 seconds so the process is taking way too long (28 minutes per 1000 files). This is what I'm using:

 

CREATE:
resourceSharedLink = client.sharing().createSharedLinkWithSettings(resourcePath).getUrl();

GET:
resourceSharedLink = client.sharing().listSharedLinksBuilder().withPath(resourcePath).start().getLinks().get(0).getUrl();

 

My app is useless with these speeds, what can I do?

 

Thanks!

4 Replies 4

Greg-DB
Dropbox Staff

I'm afraid there isn't a way to speed up these calls unfortunately, but I'll pass this along as a feature request. I can't promise if or when that might be improved on though. 

Tanglianli
New member | Level 2

You solved that performance about speed when get link each file?, i have a folder with ~20000 file, get metadata (e.g name, id, create time,..) is fast but with get url download being nightmare, lol
I used  sharing_create_shared_link_with_settings and sharing_list_shared_links for get url file too.

 

burgerman
New member | Level 2

I totally agree. This runtime is far too long for practical use.

Any possibility of an update on this DBX?

Greg-DB
Dropbox Staff

@burgerman I don't have any news on this unfortunately.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    burgerman New member | Level 2
  • User avatar
    Tanglianli New member | Level 2
What do Dropbox user levels mean?