Class: Gitlab::Database::Reindexing::IndexSelection

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/gitlab/database/reindexing/index_selection.rb

Constant Summary collapse

MINIMUM_RELATIVE_BLOAT =

Only reindex indexes with a relative bloat level (bloat estimate / size) higher than this

0.2
INDEX_SIZE_MINIMUM =

Only consider indexes beyond this size (before reindexing)

1.gigabyte
VERY_LARGE_TABLES =
%i[
  ci_builds
].freeze

Instance Method Summary collapse

Constructor Details

#initialize(candidates) ⇒ IndexSelection

Returns a new instance of IndexSelection.



21
22
23
# File 'lib/gitlab/database/reindexing/index_selection.rb', line 21

def initialize(candidates)
  @candidates = candidates
end