From: Brion Vibber Date: Tue, 13 May 2008 21:31:27 +0000 (+0000) Subject: Disable logevents until it works... X-Git-Tag: 1.31.0-rc.0~47652 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=109a85a063641ddf450abd2d186fa42cbfc50622;p=lhc%2Fweb%2Fwiklou.git Disable logevents until it works... Currently produces very slow queries like the following: SELECT /* ApiQueryLogEvents::execute SineBot */ log_type,log_action,log_timestamp,page_id,log_user,user_name,log_namespace,log_title,log_comment,log_params FROM `user`,`logging` FORCE INDEX (times) LEFT JOIN `page` ON ((log_namespace=page_namespace) AND (log_title=page_title)) WHERE (log_type != 'suppress') AND (user_id=log_user) AND log_deleted = '0' AND log_type = 'block' AND log_namespace = '2' AND log_title = '86.53.69.150' ORDER BY log_timestamp DESC LIMIT 2; --- diff --git a/includes/api/ApiQueryLogEvents.php b/includes/api/ApiQueryLogEvents.php index 1d3ba3b9f3..8b85023851 100644 --- a/includes/api/ApiQueryLogEvents.php +++ b/includes/api/ApiQueryLogEvents.php @@ -40,6 +40,8 @@ class ApiQueryLogEvents extends ApiQueryBase { } public function execute() { + throw new MWException( "This query breaks database servers. It will be restored to service when it works reliably." ); + $params = $this->extractRequestParams(); $db = $this->getDB();