Skip to content

Add database indexes for PR lookup and queue queries#29

Merged
fila-ci[bot] merged 1 commit intomainfrom
add-db-indexes
Mar 8, 2026
Merged

Add database indexes for PR lookup and queue queries#29
fila-ci[bot] merged 1 commit intomainfrom
add-db-indexes

Conversation

@arferreira
Copy link
Contributor

The pull_requests table had zero indexes despite being queried heavily. Adds two indexes via migration:

  • `idx_pr_repo_number_status` on (repo_owner, repo_name, pr_number, status) for the primary PR lookup pattern used by find_queued_pr and find_active_pr.
  • `idx_pr_status_priority_queued` on (status, priority, queued_at) for queue ordering used by get_queue, get_next_queued, and the dashboard active PR query.

@arferreira
Copy link
Contributor Author

@fila ship

@fila-ci
Copy link
Contributor

fila-ci bot commented Mar 8, 2026

Commit f1ed531 has been added to the merge queue by @arferreira.

View queue

@fila-ci fila-ci bot merged commit b83b9ab into main Mar 8, 2026
1 check passed
@fila-ci fila-ci bot deleted the add-db-indexes branch March 8, 2026 19:42
@fila-ci
Copy link
Contributor

fila-ci bot commented Mar 8, 2026

#29 merged into main (b83b9ab)

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.

1 participant