From 9c02cf8cfa9860164c376bff3f8851644200be27 Mon Sep 17 00:00:00 2001
From: Tristan Cavelier <tristan.cavelier@tiolive.com>
Date: Tue, 23 Dec 2014 18:02:22 +0000
Subject: [PATCH] Remove count_method from test result module listox

- Too slow because it takes same time than the search_method.
- The count is made durring the search thank to LIMIT 1000;
- The search LIMIT 1000 takes same time than LIMIT 30;
- The search LIMIT 1000 stays in cache, so going to next page is almost instant.
---
 .../listbox.xml                                   | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/bt5/erp5_test_result/SkinTemplateItem/portal_skins/erp5_test_result/TestResultModule_viewTestResultList/listbox.xml b/bt5/erp5_test_result/SkinTemplateItem/portal_skins/erp5_test_result/TestResultModule_viewTestResultList/listbox.xml
index 92d9610252..f0c0c9c5ed 100644
--- a/bt5/erp5_test_result/SkinTemplateItem/portal_skins/erp5_test_result/TestResultModule_viewTestResultList/listbox.xml
+++ b/bt5/erp5_test_result/SkinTemplateItem/portal_skins/erp5_test_result/TestResultModule_viewTestResultList/listbox.xml
@@ -10,15 +10,16 @@
             <key> <string>delegated_list</string> </key>
             <value>
               <list>
-                <string>sort</string>
-                <string>title</string>
+                <string>all_columns</string>
                 <string>columns</string>
+                <string>count_method</string>
+                <string>hide_rows_on_no_search_criterion</string>
                 <string>lines</string>
-                <string>selection_name</string>
                 <string>search_columns</string>
+                <string>selection_name</string>
+                <string>sort</string>
                 <string>sort_columns</string>
-                <string>hide_rows_on_no_search_criterion</string>
-                <string>all_columns</string>
+                <string>title</string>
               </list>
             </value>
         </item>
@@ -189,6 +190,10 @@
                       </list>
                     </value>
                 </item>
+                <item>
+                    <key> <string>count_method</string> </key>
+                    <value> <string></string> </value>
+                </item>
                 <item>
                     <key> <string>field_id</string> </key>
                     <value> <string>my_list_mode_listbox</string> </value>
-- 
2.30.9