[freeside-commits] branch FREESIDE_2_3_BRANCH updated. a805e954792ea580d1c7f5cbd1b00f482676164d

Ivan ivan at 420.am
Sat Jun 2 02:00:20 PDT 2012


The branch, FREESIDE_2_3_BRANCH has been updated
       via  a805e954792ea580d1c7f5cbd1b00f482676164d (commit)
      from  b7a80b36571a74ad7e7af4cf93bb2b230df06520 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a805e954792ea580d1c7f5cbd1b00f482676164d
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Sat Jun 2 02:00:19 2012 -0700

    journal expensive parts parts of cust_main upgrade, RT#17629

diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index d7796d6..765e90e 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -5061,6 +5061,7 @@ sub _upgrade_data { #class method
     'UPDATE h_cust_main SET paycvv = NULL WHERE paycvv IS NOT NULL',
   );
 
+  #this seems to be the only expensive one.. why does it take so long?
   unless ( FS::upgrade_journal->is_done('cust_main__signupdate') ) {
     push @statements,
       'UPDATE cust_main SET signupdate = (SELECT signupdate FROM h_cust_main WHERE signupdate IS NOT NULL AND h_cust_main.custnum = cust_main.custnum ORDER BY historynum DESC LIMIT 1) WHERE signupdate IS NULL';

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/cust_main.pm |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)




More information about the freeside-commits mailing list