Skip to content
代码片段 群组 项目
未验证 提交 8fc8bc62 编辑于 作者: Alper Akgun's avatar Alper Akgun 提交者: GitLab
浏览文件

Merge branch '434946-add-gin-index-compliance-name' into 'master'

Adding GIN index on name field of compliance frameworks table

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/139643



Merged-by: default avatarAlper Akgun <aakgun@gitlab.com>
Approved-by: default avatarAlper Akgun <aakgun@gitlab.com>
Approved-by: default avatarMax Orefice <morefice@gitlab.com>
Reviewed-by: default avatarMax Orefice <morefice@gitlab.com>
Co-authored-by: default avatarHitesh Raghuvanshi <hraghuvanshi@gitlab.com>
No related branches found
No related tags found
无相关合并请求
# frozen_string_literal: true
class AddTrigramIndexToComplianceManagementFrameworksOnName < Gitlab::Database::Migration[2.2]
milestone '16.7'
disable_ddl_transaction!
INDEX_NAME = 'index_compliance_management_frameworks_on_name_trigram'
def up
add_concurrent_index :compliance_management_frameworks, :name,
name: INDEX_NAME,
using: :gin, opclass: { name: :gin_trgm_ops }
end
def down
remove_concurrent_index_by_name :compliance_management_frameworks, INDEX_NAME
end
end
4788c59395a1aaa8c9808b67d8acc281bf15ed4785d2da53bd698a6f3ac2a9bc
\ No newline at end of file
......@@ -32549,6 +32549,8 @@ CREATE UNIQUE INDEX index_commit_user_mentions_on_note_id ON commit_user_mention
 
CREATE INDEX index_compliance_frameworks_id_where_frameworks_not_null ON compliance_management_frameworks USING btree (id) WHERE (pipeline_configuration_full_path IS NOT NULL);
 
CREATE INDEX index_compliance_management_frameworks_on_name_trigram ON compliance_management_frameworks USING gin (name gin_trgm_ops);
CREATE INDEX index_composer_cache_files_where_namespace_id_is_null ON packages_composer_cache_files USING btree (id) WHERE (namespace_id IS NULL);
 
CREATE INDEX index_container_expiration_policies_on_next_run_at_and_enabled ON container_expiration_policies USING btree (next_run_at, enabled);
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册