diff --git a/core/model/DB.php b/core/model/DB.php index c5327774c..6546894d6 100755 --- a/core/model/DB.php +++ b/core/model/DB.php @@ -122,15 +122,6 @@ class DB { */ static function query($sql, $errorLevel = E_USER_ERROR) { self::$lastQuery = $sql; - /* debug helper for query efficiency - if(substr(strtolower($sql),0,6) == 'select') { - $product = 1; - foreach(self::getConn()->query("explain " . $sql, $errorLevel) as $explainRow) { - if($explainRow['rows']) $product *= $explainRow['rows']; - } - if($product > 100) - Debug::message("Cartesian product $product for SQL: $sql"); - } */ return self::getConn()->query($sql, $errorLevel); }