Manual:$wgMaxUserDBWriteDuration

Performance hacks and limits: $wgMaxUserDBWriteDuration
Max time (in seconds) a user-generated transaction can spend in writes.
Introduced in version:1.27.0 (Gerrit change 248642; git #c30b0495)
Removed in version:Still in use
Allowed values:false or (integer)
Default value:false

Details

If exceeded, the transaction is rolled back with an error instead of being committed.