debian-mirror-gitlab/lib/gitlab/database/reindexing.rb

20 lines
477 B
Ruby
Raw Normal View History

2021-01-03 14:25:43 +05:30
# frozen_string_literal: true
module Gitlab
module Database
module Reindexing
def self.perform(index_selector)
Coordinator.new(index_selector).perform
end
def self.candidate_indexes
Gitlab::Database::PostgresIndex
.regular
2021-01-29 00:20:46 +05:30
.where('NOT expression')
2021-01-03 14:25:43 +05:30
.not_match("^#{ConcurrentReindex::TEMPORARY_INDEX_PREFIX}")
.not_match("^#{ConcurrentReindex::REPLACED_INDEX_PREFIX}")
end
end
end
end