hirosystems / explorer

Explore transactions and accounts on the Stacks blockchain. Clone any contract and experiment in your browser with the Explorer sandbox.
https://explorer.hiro.so/
MIT License
140 stars 101 forks source link

Disable, cache or lazy load `stxPrice` endpoint. #1707

Closed LNow closed 3 weeks ago

LNow commented 3 months ago

stxPrice endpoint is very slow and makes whole explorer unusable. Why do we have to wait sometimes almost a minute to see the data that were downloaded in fraction of that time?

image image image

Please disable this endpoint, cache it properly or lazy load it instead of slowing down whole UI.

andresgalante commented 3 months ago

@He1DAr Would you mind taking a look at this one please?

He1DAr commented 3 weeks ago

Consolidated requests to trigger one request per day, will still be somewhat problematic in cases where there's a list with many transactions from different days. We'll need a batch endpoint to fully resolve this.