From a6d1115d0f17a6ba626eda23d3b6d2e891052911 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 16 Jun 2015 08:11:18 +0200 Subject: [PATCH] NotificationhistoryQuery: Improve JOIN performance refs #9009 --- .../Backend/Ido/Query/NotificationhistoryQuery.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/NotificationhistoryQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/NotificationhistoryQuery.php index 8bbdc0751..1195161d3 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/NotificationhistoryQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/NotificationhistoryQuery.php @@ -26,15 +26,6 @@ class NotificationhistoryQuery extends IdoQuery ) ); - public function whereToSql($col, $sign, $expression) - { - if ($col === 'UNIX_TIMESTAMP(n.start_time)') { - return 'n.start_time ' . $sign . ' ' . $this->timestampForSql($this->valueToTimestamp($expression)); - } else { - return parent::whereToSql($col, $sign, $expression); - } - } - protected function joinBaseTables() { switch ($this->ds->getDbType()) {