Skip to content

add indexes and update readme#224

Merged
Thykof merged 2 commits intomainfrom
add-indexes-and-update-readme
Feb 24, 2026
Merged

add indexes and update readme#224
Thykof merged 2 commits intomainfrom
add-indexes-and-update-readme

Conversation

@Thykof
Copy link
Member

@Thykof Thykof commented Feb 19, 2026

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds database performance optimizations through new indexes and updates documentation with a corrected API endpoint URL. The changes aim to improve query performance for validator request and miner score lookups.

Changes:

  • Added two new database indexes using PostgreSQL's CONCURRENTLY option for non-blocking index creation
  • Updated API documentation URL from deprecated synth.mode.network domain to api.synthdata.co
  • Removed an outdated comment about worker configuration in the reward module

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
alembic/versions/8bf23e9921f1_add_indexes_for_scores_latest.py New database migration adding indexes on miner_predictions(validator_requests_id) and miner_scores(miner_predictions_id, scored_time DESC)
docs/miner_reference.md Updated validation endpoint URL to reflect new API domain
synth/validator/reward.py Removed outdated comment about 255 miners in process executor initialization

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

* added composite index for metagraph history table

* added commit before creating an index

* fixed the migration

* fmt

---------

Co-authored-by: Thykof <thykof@protonmail.ch>
@Thykof Thykof merged commit ea09472 into main Feb 24, 2026
1 check passed
@Thykof Thykof deleted the add-indexes-and-update-readme branch February 24, 2026 15:06
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