#wzm_api

1 messages ¡ Page 1 of 1 (latest)

main lotusBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1230595077160829018

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

umbral knotBOT
naive marsh
#

Hey there, I can file feedback about this but it's not something we can action immediately. Can you share roughly what time period you've observed this over?

fair patio
#

It's taken 10-11 seconds to load that API endpoint (it's paginated, and takes two calls) for at least a couple years. 15s seems to be within the last couple months.

#

I think it's more or less static content: I think everyone gets the same set of countries.

naive marsh
#

Ah you mught be setting a higher limit in that case, which does take longer

#

Using the default limit=10 I get the response in under 1s

#

So I'd suggest considering breaking this up into smaller pages, and also possibly manage your own requests with caching

fair patio
#

I think it scales with results, if limit=10, you need to make 11+ 1 second queries, if it's 100, you make two queries, one of which is 10s, and one of which (used to be) 1s.

#

1 second per 10 countries of relatively small json seems very slow.