diff --git a/db/docs/push_rules.yml b/db/docs/push_rules.yml index 8b9d9407fd34729e4884d2d1e86084350af67b09..ba5c3a988005e3bfe999ff8ac34d32722a462668 100644 --- a/db/docs/push_rules.yml +++ b/db/docs/push_rules.yml @@ -8,5 +8,6 @@ description: TODO introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/1b98b5ab97ce3e9997df542059cbf3c6ce0bf0e1 milestone: '8.10' gitlab_schema: gitlab_main_cell -sharding_key_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/490488 table_size: small +sharding_key: + project_id: projects diff --git a/spec/lib/gitlab/database/sharding_key_spec.rb b/spec/lib/gitlab/database/sharding_key_spec.rb index 393e8dd779836a2696a5458e0328dae3b50ca4a0..aeafd041938d5dec582ee9dbde607c41eb6dfc4d 100644 --- a/spec/lib/gitlab/database/sharding_key_spec.rb +++ b/spec/lib/gitlab/database/sharding_key_spec.rb @@ -29,6 +29,7 @@ *['labels.project_id', 'labels.group_id'], # https://gitlab.com/gitlab-org/gitlab/-/issues/434356 'member_roles.namespace_id', # https://gitlab.com/gitlab-org/gitlab/-/issues/444161 *['todos.project_id', 'todos.group_id'], + 'push_rules.project_id', *uploads_and_partitions ] end