Changeset 5880


Ignore:
Timestamp:
Nov 21, 2011, 11:18:33 AM (10 years ago)
Author:
Nicklas Nordborg
Message:

References #1630: Migrate from MySQL to PostgreSQL

More info in progress reporter when counting rows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/net/sf/basedb/core/Migration.java

    r5857 r5880  
    262262    progress.display(0, dynamicTables.size() + " tables in dynamic database\n");
    263263    progress.display(0, "Counting rows...");
     264    int totalTables = staticTables.size() + dynamicTables.size();
    264265   
    265266    // Get metadata (eg. column names+types)
     
    271272      if (System.currentTimeMillis() > nextTick)
    272273      {
    273         progress.append(".");
     274        //progress.append(".");
     275        progress.display(0, "Counting rows in all tables (" + tables.size() + "/" + totalTables + ")...");
    274276        nextTick = System.currentTimeMillis()+TICK_INTERVAL;
    275277      }
     
    283285      if (System.currentTimeMillis() > nextTick)
    284286      {
    285         progress.append(".");
     287        //progress.append(".");
     288        progress.display(0, "Counting rows in all tables (" + tables.size() + "/" + totalTables + ")...");
    286289        nextTick = System.currentTimeMillis()+TICK_INTERVAL;
    287290      }
     
    292295    }
    293296
    294     progress.append(" found " + Values.formatNumber(totalRows / 1000000f, 1) + " million data rows\n");
     297    progress.display(0, "Found " + Values.formatNumber(totalRows / 1000000f, 1) + " million data rows\n");
    295298   
    296299   
Note: See TracChangeset for help on using the changeset viewer.