Manual:$wgCheckDBSchema

Details
Live high performance sites should disable this - some checks acquire giant MySQL locks.