Disable logevents until it works...
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 13 May 2008 21:31:27 +0000 (21:31 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 13 May 2008 21:31:27 +0000 (21:31 +0000)
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

index 1d3ba3b..8b85023 100644 (file)
@@ -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();