Skip to content

Load all dynamic build groups simultaneously#3732

Merged
josephsnyder merged 2 commits into
Kitware:masterfrom
williamjallen:dynamic-build-group-performance
May 15, 2026
Merged

Load all dynamic build groups simultaneously#3732
josephsnyder merged 2 commits into
Kitware:masterfrom
williamjallen:dynamic-build-group-performance

Conversation

@williamjallen
Copy link
Copy Markdown
Collaborator

Projects with many builds assigned to dynamic build groups can see reduced performance due to the iterative execution of an expensive query. This addresses the issue by precomputing the queries and combining their results with UNION ALL. The end result is a constant two-query process: a first query which selects the relevant build IDs, and then another which selects the data we need. This can be improved in the future by using a join instead of a union, but that has a number of tricky corner cases to address and should be done separately from this change.

Projects with many builds assigned to dynamic build groups can see reduced performance due to the iterative execution of an expensive query.  This addresses the issue by precomputing the queries and combining their results with UNION ALL.  The end result is a constant two-query process: a first query which selects the relevant build IDs, and then another which selects the data we need.  This can be improved in the future by using a join instead of a union, but that has a number of tricky corner cases to address and should be done separately from this change.
@josephsnyder josephsnyder added this pull request to the merge queue May 15, 2026
Merged via the queue into Kitware:master with commit 40fad99 May 15, 2026
13 of 14 checks passed
@williamjallen williamjallen deleted the dynamic-build-group-performance branch May 15, 2026 15:43
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