X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=docs%2Fdatabase.txt;h=ba3045ed40dbdf539d12e7f91b0b7f922fa567f6;hb=dc40debaea2effd46a43c88d0fc925b3550c829b;hp=735f26bff37735baea2c7d4ac90842b5181bf841;hpb=adbadb9ee62284d70d9e7763379ab3b4eb6bde6f;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/database.txt b/docs/database.txt index 735f26bff3..ba3045ed40 100644 --- a/docs/database.txt +++ b/docs/database.txt @@ -159,10 +159,7 @@ $dbw->commit( __METHOD__ ); Use of locking reads (e.g. the FOR UPDATE clause) is not advised. They are poorly implemented in InnoDB and will cause regular deadlock errors. -It's also surprisingly easy to cripple the wiki with lock contention. If -you must use them, define a new flag for $wgAntiLockFlags which allows -them to be turned off, because we'll almost certainly need to do so on -the Wikimedia cluster. +It's also surprisingly easy to cripple the wiki with lock contention. Instead of locking reads, combine your existence checks into your write queries, by using an appropriate condition in the WHERE clause of an