Quering for Tags is extremly slow - How to limit the results in query?

Aleksandar Jaksic
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 16, 2023

Hello,

after migrating to Bitbucket Cloud and switching to API 2.0 we are having big issues with very slow API calls, especially for repositories with lots of tags.

In order to fetch the tags and filter them, we are using this API call, which very often brings our web server in the timeout: curl --request GET --url 'https://api.bitbucket.org/2.0/repositories/myworkspace/myrepo/refs/tags?q=%28name%20~%20%22tagname%22%29' --user "mycredentials" --header 'Accept: application/json'

If we try to reduce number of tags and consider only ones created in last few days to speed up the process, we try to use: curl --request GET --url 'https://api.bitbucket.org/2.0/repositories/myworkspace/myrepo/refs/tags?q=%28target.date+%3E+%222023-08-10%22%29' --user "mycredentials" --header 'Accept: application/json' which just gives us back "Something went wrong".

I also couldn't find anything in documentation regarding tags on how you can limit number of results or search on anything else different than tag name.

Is there a possibility to restrict number of results/filter based on tag creation date or anything else, which could give us a quick response from API? With API v.1.0 and outside of cloud this operation was pretty fast.

Kind Regards,
Aleks

1 answer

1 accepted

1 vote
Answer accepted
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 16, 2023

Hi Aleksandar,

I have opened a support ticket on your behalf as you are a Premium user, please check your email for further correspondence.

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events