blob: 67cf7018ded6172da1d66f8ec20cef0e07baeb60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# frozen_string_literal: true
module Gitlab
module Database
module Partitioning
class CiSlidingListStrategy < SlidingListStrategy
def initial_partition
partition_name = [table_name.to_s.delete_prefix('p_'), 100].join('_')
SingleNumericListPartition.new(table_name, 100, partition_name: partition_name)
end
def validate_and_fix; end
def after_adding_partitions; end
def extra_partitions
[]
end
private
def ensure_partitioning_column_ignored_or_readonly!; end
end
end
end
end
|