1
私はCakephpのログでたくさんの追加のカウントクエリに気付きました。彼らは本当に不要で、物事を遅くするようです。 誰が彼らが何であるか、どのように削除できるかを知っていますか?余分な "カウント"クエリ
[194] => Array
(
[query] => SELECT COUNT(*) AS `count` FROM `gpx_points` AS `Point` WHERE `Point`.`id` = 81857
[affected] => 1
[numRows] => 1
[took] => 1
)
[195] => Array
(
[query] => SELECT COUNT(*) AS `count` FROM `gpx_points` AS `Point` WHERE `Point`.`id` = 81857
[affected] => 1
[numRows] => 1
[took] => 1
)
[196] => Array
(
[query] => UPDATE `gpx_points` SET `id` = 81857, `file_id` = 6, `zoom13` = '1' WHERE `gpx_points`.`id` = 81857
[affected] => 1
[numRows] => 1
[took] => 1
)
[197] => Array
(
[query] => SELECT COUNT(*) AS `count` FROM `gpx_points` AS `Point` WHERE `Point`.`id` = 71020
[affected] => 1
[numRows] => 1
[took] => 1
)
[198] => Array
(
[query] => SELECT COUNT(*) AS `count` FROM `gpx_points` AS `Point` WHERE `Point`.`id` = 71020
[affected] => 1
[numRows] => 1
[took] => 0
)
[199] => Array
(
[query] => UPDATE `gpx_points` SET `id` = 71020, `file_id` = 5, `zoom13` = '1' WHERE `gpx_points`.`id` = 71020
[affected] => 1
[numRows] => 1
[took] => 1
)
あなたはおそらく実行されていることをfind( 'count')はどこかにある。 GpxPointモデル/コントローラコードが表示されます。 – Oldskool