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

feat(guardian-prover-health-check): add indexer in MySQL #15945

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

xiaodino
Copy link
Contributor

To optimize these queries which introduce high load based on database monitoring

SELECT * FROM `health_checks` WHERE `guardian_prover_id` = ? ORDER BY `created_at` DESC LIMIT ?

SELECT COUNT ( * ) FROM `health_checks` WHERE `guardian_prover_id` = ? AND `created_at` > NOW ( ) - INTERVAL ? SQL_TSI_DAY

SELECT * FROM `signed_blocks` WHERE `block_id` >= ?

Copy link

codecov bot commented Feb 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b00d0b1) 26.82% compared to head (6516243) 26.82%.
Report is 9 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #15945   +/-   ##
=======================================
  Coverage   26.82%   26.82%           
=======================================
  Files         105      105           
  Lines        6188     6188           
=======================================
  Hits         1660     1660           
  Misses       4348     4348           
  Partials      180      180           
Flag Coverage Δ *Carryforward flag
eventindexer 17.22% <ø> (ø) Carriedforward from b00d0b1
guardian-prover-health-check 34.81% <ø> (ø)
relayer 37.88% <ø> (ø) Carriedforward from b00d0b1

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@xiaodino xiaodino added this pull request to the merge queue Feb 20, 2024
Merged via the queue into main with commit f53766b Feb 20, 2024
8 checks passed
@xiaodino xiaodino deleted the xiaodino/add-index-guardian-prover-health-check branch February 20, 2024 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants