Skip to content

Preload commit statuses to avoid N+1 - #1502

Merged
timothysmith0609 merged 1 commit into
mainfrom
ts/preload-commit-status
Sep 16, 2026
Merged

timothysmith0609 merged 1 commit into
mainfrom
ts/preload-commit-status

Conversation

@timothysmith0609

Copy link
Copy Markdown
Contributor

Preloads commit statuses and check runs when serializing deploys. There are pathological cases where we end up processing thousands of commits, and with N+1 queries these take a very long time to complete: we can shrink that time by simply preloading the relation.

@timothysmith0609 timothysmith0609 self-assigned this Sep 16, 2026
@timothysmith0609
timothysmith0609 merged commit 0be4eee into main Sep 16, 2026
15 checks passed
@timothysmith0609
timothysmith0609 deleted the ts/preload-commit-status branch September 16, 2026 15:23
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.

2 participants