From 109a85a063641ddf450abd2d186fa42cbfc50622 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 13 May 2008 21:31:27 +0000 Subject: [PATCH] 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; --- includes/api/ApiQueryLogEvents.php | 2 ++ 1 file changed, 2 insertions(+) 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(); -- 2.20.1