From dc1028ddc17c68f3a1913be8de320e894895fb00 Mon Sep 17 00:00:00 2001 From: hustewart Date: Sat, 4 Oct 2025 12:41:09 -0400 Subject: [PATCH] Define snippet repo sharding key `snippet_repositories` can have a sharding key that is based on either the project or the organization of the associated snippet record. --- db/docs/snippet_repositories.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/db/docs/snippet_repositories.yml b/db/docs/snippet_repositories.yml index 02018dfa55a512..81e7bf70322906 100644 --- a/db/docs/snippet_repositories.yml +++ b/db/docs/snippet_repositories.yml @@ -8,5 +8,7 @@ description: Stores repository information used to version control snippets. introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/23796 milestone: '12.8' table_size: small -gitlab_schema: gitlab_main_cell_local -sharding_key_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/550705 +gitlab_schema: gitlab_main_org +sharding_key: + snippet_project_id: projects + snippet_organization_id: organizations -- GitLab