Commit e4cd9e2b authored by Yannis Roussos's avatar Yannis Roussos

Merge branch '325636-index-namespaces-traversal_ids' into 'master'

Resolve "Index namespaces.traversal_ids"

See merge request gitlab-org/gitlab!57207
parents 084591f6 3eecac53
---
title: Add gin index for namespaces.traversal_ids
merge_request: 57207
author:
type: performance
# frozen_string_literal: true
class AddNamespaceTraversalIdsIndex < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
INDEX_NAME = 'index_namespaces_on_traversal_ids'
disable_ddl_transaction!
def up
add_concurrent_index :namespaces, :traversal_ids, using: :gin, name: INDEX_NAME
end
def down
remove_concurrent_index_by_name :namespaces, INDEX_NAME
end
end
4ef75890cf2c30954e0d1ff04c75b58cb910315ea1ed345e351edd035b681cc6
\ No newline at end of file
......@@ -23132,6 +23132,8 @@ CREATE UNIQUE INDEX index_namespaces_on_runners_token_encrypted ON namespaces US
CREATE INDEX index_namespaces_on_shared_and_extra_runners_minutes_limit ON namespaces USING btree (shared_runners_minutes_limit, extra_shared_runners_minutes_limit);
CREATE INDEX index_namespaces_on_traversal_ids ON namespaces USING gin (traversal_ids);
CREATE INDEX index_namespaces_on_type_and_id_partial ON namespaces USING btree (type, id) WHERE (type IS NOT NULL);
CREATE INDEX index_non_requested_project_members_on_source_id_and_type ON members USING btree (source_id, source_type) WHERE ((requested_at IS NULL) AND ((type)::text = 'ProjectMember'::text));
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment