Commit 85c7e913 authored by Adam Hegyi's avatar Adam Hegyi

Merge branch '223793-async-index-ci-job-artifacts-id-project-id-file-type' into 'master'

Prepare async index on ci_job_artifacts id, project_id, file_type

See merge request gitlab-org/gitlab!77393
parents 8269317c 1a0ee0ec
# frozen_string_literal: true
class AddAsyncIndexCiJobArtifactsProjectIdFileType < Gitlab::Database::Migration[1.0]
disable_ddl_transaction!
INDEX_NAME = 'index_ci_job_artifacts_on_id_project_id_and_file_type'
def up
prepare_async_index :ci_job_artifacts, [:project_id, :file_type, :id], name: INDEX_NAME
end
def down
unprepare_async_index_by_name :ci_job_artifacts, INDEX_NAME
end
end
8019915a00f62c137ee48c860c888e9d43f7253a5ea1a684ba2abe8bbe8016df
\ No newline at end of file
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