--- FM2SQL/Attic/Convert.java 2004/02/11 11:39:25 1.29 +++ FM2SQL/Attic/Convert.java 2004/02/11 12:17:10 1.31 @@ -25,7 +25,8 @@ class Convert static String userDest="postgres",passwdDest="rogo"; static boolean batchRun=false; static Vector databases = new Vector(); - final static int numIntervalls = 10; + final static int numHits = 5000; + final static int numIntervalls = 2; public static void main(String args[]) { /* try @@ -659,10 +660,11 @@ class Convert String tempQuery=query;String tempID = bean.getQC()+idField+bean.getQC(); if (!idField.equals("")) { + long startTime = System.currentTimeMillis(); while (true) { dialog.title.setText("Getting next ID Vector"); - myIds = bean.getIDVector(ids.get(tbIndex).toString(), (String) names.get(tbIndex), tempQuery, 1000); + myIds = bean.getIDVector(ids.get(tbIndex).toString(), (String) names.get(tbIndex), tempQuery, numHits); if(myIds.isEmpty()) break; vec = new Vector(myIds); rowCount = vec.size(); @@ -708,6 +710,8 @@ class Convert tempQuery = query + " where " + tempID + ">" + vec.lastElement(); } + long endTime = System.currentTimeMillis(); + System.out.println("Time for incremental convert elapsed "+(endTime-startTime)); } else { bean.makeQuery(query, 0);