Skip to content

Optimize site information existence check#3523

Merged
williamjallen merged 1 commit intoKitware:masterfrom
williamjallen:update-site-information-unnecessary-count
Mar 10, 2026
Merged

Optimize site information existence check#3523
williamjallen merged 1 commit intoKitware:masterfrom
williamjallen:update-site-information-unnecessary-count

Conversation

@williamjallen
Copy link
Collaborator

Every submission currently counts the site information records associated with the build's site, only to check whether that value is zero. That count query adds up fast when projects use the same site name across many different machines with different specs. This commit updates the offending query to instead check for the existence of any records instead of counting them.

Every submission currently counts the site information records associated with the build's site, only to check whether that value is zero.  That count query adds up fast when projects use the same site name across many different machines with different specs.  This commit updates the offending query to instead check for the existence of any records instead of counting them.
@josephsnyder josephsnyder added this pull request to the merge queue Mar 10, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 10, 2026
@williamjallen williamjallen added this pull request to the merge queue Mar 10, 2026
Merged via the queue into Kitware:master with commit b90d91b Mar 10, 2026
7 checks passed
@williamjallen williamjallen deleted the update-site-information-unnecessary-count branch March 10, 2026 17:22
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