Remove pages_deployments[project_id, path_prefix] unique index
Currently we keep pages deployments for about 30m after creating a new one. This is to avoid racing conditions between the time the new deployment is created and GitLab Pages is updates its caches with the latest deployment. Therefore, while we use this mechanism, we cannot enforce uniqueness on pages_deployments for project_id and path_prefix, as more than one deploy for given path_prefix might exist. Related to: - Issue that introduced the index: - https://gitlab.com/gitlab-org/gitlab/-/issues/416488 - Problem was found while working on - https://gitlab.com/gitlab-org/gitlab/-/merge_requests/129534 - https://gitlab.com/gitlab-org/gitlab/-/issues/416492 Changelog: added
显示
- db/post_migrate/20230823194111_remove_pages_deployments_project_id_path_prefix_unique_index.rb 14 个添加, 0 个删除..._pages_deployments_project_id_path_prefix_unique_index.rb
- db/schema_migrations/20230823194111 1 个添加, 0 个删除db/schema_migrations/20230823194111
- db/structure.sql 0 个添加, 2 个删除db/structure.sql
- spec/support/helpers/database/duplicate_indexes.yml 0 个添加, 3 个删除spec/support/helpers/database/duplicate_indexes.yml
加载中
想要评论请 注册 或 登录