-
Notifications
You must be signed in to change notification settings - Fork 13
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
Website: updating 7d stats data is super slow #29
Comments
Trying an index on CREATE INDEX CONCURRENTLY mainnet_data_api_payload_delivered_insertedat_relay_idx ON mainnet_data_api_payload_delivered (inserted_at, relay); |
Added some more logging in #31 Looks like the slowness is in this step, when querying top builders per relay: relayscan/services/website/webserver.go Lines 186 to 196 in eb0bb87
And the DB query: relayscan/database/database.go Lines 124 to 135 in eb0bb87
Logs:
|
it's only taking about 11 seconds nowadays, after updating the indexes
|
Seems updating the 7d stats in the webserver can take up to 8 minutes. This is also blocking the webserver from starting at program startup.
Todo:
The text was updated successfully, but these errors were encountered: