Forum Discussion

said1296's avatar
said1296
New member | Level 2
5 years ago

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

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

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    5 years ago

    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's avatar
    Tanglianli
    New member | Level 2
    4 years ago

    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's avatar
    burgerman
    New member | Level 2
    3 years ago

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

    Any possibility of an update on this DBX?

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!