是否有任何方式在蛋糕php防止第二次查询从执行计数,我的查询日志是这样的
array(
'log' => array(
(int) 0 => array(
'query' => 'SELECT DISTINCT `Medicine`.`Name`, `City`.`Name`, `Company`.`Name`, `Medicine`.`id`, `Type`.`Type` FROM `pharma`.`medicines` AS `Medicine` LEFT JOIN `pharma`.`companies` AS `Company` ON (`Company`.`id` = `Medicine`.`company_id`) LEFT JOIN `pharma`.`types` AS `Type` ON (`Type`.`id` = `Medicine`.`type_id`) LEFT JOIN `pharma`.`cities` AS `City` ON (`City`.`id` = `Company`.`city_id`) WHERE 1 = 1 LIMIT 30',
'params' => array(),
'affected' => (int) 30,
'numRows' => (int) 30,
'took' => (float) 2
),
(int) 1 => array(
'query' => 'SELECT COUNT(*) AS `count` FROM `pharma`.`medicines` AS `Medicine` WHERE 1 = 1',
'params' => array(),
'affected' => (int) 1,
'numRows' => (int) 1,
'took' => (float) 50
)
),
'count' => (int) 2,
'time' => (float) 52
)
我想删除这个(int)2“Count”查询这可能是在蛋糕php吗?