Skip to content

ref(seer): Use bulk_create for SeerProjectRepository operations#116407

Draft
srest2021 wants to merge 2 commits into
masterfrom
srest2021/make-repo-ops-bulk
Draft

ref(seer): Use bulk_create for SeerProjectRepository operations#116407
srest2021 wants to merge 2 commits into
masterfrom
srest2021/make-repo-ops-bulk

Conversation

@srest2021
Copy link
Copy Markdown
Member

@srest2021 srest2021 commented May 28, 2026

For better performance and atomicity, use bulk_create instead of per-row update_or_create for SeerProjectRepository and branch overrides, like we're already doing in _write_preferences_to_sentry_db.

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label May 28, 2026
@srest2021 srest2021 changed the title ref(seer): ref(seer): Use bulk_create for seer project repo operations May 28, 2026
@srest2021 srest2021 changed the title ref(seer): Use bulk_create for seer project repo operations ref(seer): Use bulk_create for SeerProjectRepository operations May 28, 2026
branch_overrides: NotRequired[list[BranchOverrideData]]


def replace_all_branch_overrides(
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Moved to project_seer_repos.py L258

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant