[freeside-commits] freeside/FS/FS/Cron bill.pm,1.21,1.22

Ivan,,, ivan at wavetail.420.am
Wed Apr 22 21:57:07 PDT 2009


Update of /home/cvs/cvsroot/freeside/FS/FS/Cron
In directory wavetail.420.am:/tmp/cvs-serv12734

Modified Files:
	bill.pm 
Log Message:
we don't actually need the results ordered, and i'm sure it doesn't help the planner get us results sooner.  last chance to try and get cursor approach working?  RT#4412

Index: bill.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Cron/bill.pm,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- bill.pm	23 Apr 2009 04:14:54 -0000	1.21
+++ bill.pm	23 Apr 2009 04:57:05 -0000	1.22
@@ -107,9 +107,7 @@
 
   $cursor_dbh->do(
     "DECLARE cron_bill_cursor CURSOR FOR ".
-    "  SELECT custnum FROM cust_main ".
-    "    WHERE ". join(' AND ', @search).
-    "    ORDER BY custnum " #LIMIT 1000 "
+    "  SELECT custnum FROM cust_main WHERE ". join(' AND ', @search)
   ) or die $cursor_dbh->errstr;
 
   while ( 1 ) {



More information about the freeside-commits mailing list