Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

524 error and timeout when hitting the attached ordinals API URL #188

Open
timstackblock opened this issue Aug 21, 2023 · 1 comment
Open
Assignees
Labels
bug Something isn't working postgres

Comments

@timstackblock
Copy link

Describe the bug
go to this URL https://api.stg.hiro.so/ordinals/v1/inscriptions?from_genesis_block_height=799988&mime_type=text%2Fplain&limit=60&offset=0&order=asc&order_by=genesis_block_height

You will get an infinite spinner and eventually a 524 error and a timeout, I pulled this URL out of the grafana logs when sourcing data for the load test.

Screen Shot 2023-08-21 at 12 31 53 PM Screen Shot 2023-08-21 at 12 25 49 PM
@github-project-automation github-project-automation bot moved this to 🆕 New in Ordinals Aug 21, 2023
@timstackblock timstackblock added the bug Something isn't working label Aug 21, 2023
@smcclellan smcclellan moved this from 🆕 New to 📋 Backlog in Ordinals Aug 21, 2023
@rafaelcr
Copy link
Collaborator

After investigating, I've found that this particular query is very slow because it is trying to count results with several filters at the same time which don't fall inside of the count caches we already have. Caching counts for these specific filters would be very expensive (storage-wise) because we'd need to save counts for all mime types per block.

One option we could explore in these cases is returning count estimates instead of a precise number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working postgres
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants