From 81263a1e0c47e008532c85428bf5dcbf12eee865 Mon Sep 17 00:00:00 2001 From: "wclouser%mozilla.com" Date: Tue, 4 Jul 2006 23:59:18 +0000 Subject: [PATCH] got rid of the "group by" restraint, halfing the query time :) --- webtools/uninstall_survey/models/result.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/webtools/uninstall_survey/models/result.php b/webtools/uninstall_survey/models/result.php index 5f8953f24a3..2d5edab2002 100644 --- a/webtools/uninstall_survey/models/result.php +++ b/webtools/uninstall_survey/models/result.php @@ -88,7 +88,7 @@ class Result extends AppModel { // SQL_CALC_FOUND_ROWS used for counting comments $_query = " SELECT - SQL_CALC_FOUND_ROWS + SQL_CALC_FOUND_ROWS DISTINCT `Result`.`id`, `Result`.`comments`, `Result`.`created` @@ -105,7 +105,6 @@ class Result extends AppModel { collection_id={$_collection_id['Collection']['id']} AND Result.application_id={$_application_id} - GROUP BY Result.comments "; $_start =($pagination['page'] -1) * $pagination['show'];