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 #16060

Merged

Conversation

xiaodino
Copy link
Contributor

@xiaodino xiaodino commented Feb 25, 2024

It's to to optimize these queries:

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

@xiaodino xiaodino added this pull request to the merge queue Feb 26, 2024
Merged via the queue into main with commit 87a4876 Feb 26, 2024
8 checks passed
@xiaodino xiaodino deleted the xiaodino/add-index-guardian-prover-health-check-created-at branch February 26, 2024 09:53
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