Skip to content

Conversation

@williamjallen
Copy link
Collaborator

There's currently no way for Postgres to efficiently query tests by status for a given build. The best query plan with the current setup is simply for Postgres to scan all of the tests for a given build. Scanning all tests is reasonably efficient in most cases, but the overhead adds up over time for this extremely common use case. This PR indexes build2test(buildid,status) to allow the database to count the number of passing or failing tests directly.

Copy link
Member

@josephsnyder josephsnyder left a comment

Choose a reason for hiding this comment

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

No duplications and installs without issue. LGTM!

@josephsnyder josephsnyder added this pull request to the merge queue Sep 11, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 11, 2025
@williamjallen williamjallen added this pull request to the merge queue Sep 11, 2025
Merged via the queue into Kitware:master with commit 6abbfff Sep 11, 2025
13 of 14 checks passed
@williamjallen williamjallen deleted the test-build-status-index branch September 11, 2025 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants