blob: 5229b17e9712dd2b406e35b2dfbc3a976c08a92a (
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
|
# frozen_string_literal: true
module LooseForeignKeys
# This is a modification tracker with the additional limits that can be enabled
# for some database via an OPS Feature Flag.
class TurboModificationTracker < ModificationTracker
extend ::Gitlab::Utils::Override
override :max_runtime
def max_runtime
45.seconds
end
override :max_deletes
def max_deletes
200_000
end
override :max_updates
def max_updates
150_000
end
end
end
|