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

Instance Method Summary collapse

Constructor Details

#initialize(candidates) ⇒ IndexSelection

Returns a new instance of IndexSelection.


17
18
19
# File 'lib/gitlab/database/reindexing/index_selection.rb', line 17

def initialize(candidates)
  @candidates = candidates
end