Teradata-jdbc: What's the point of using Fastload if java has memory limitations?
问题 Here is the link to a sample jdbc Fastload program from the teradata website : http://developer.teradata.com/doc/connectivity/jdbc/reference/current/samp/T20205JD.java.txt It inserts only one row so I modified it to insert 500K rows by replacing the following code : pstmt.setInt(1, 1); pstmt.setString(2, strBuf); pstmt.addBatch(); batchCount++; with : for (int i = 0; i < 500000 ; i ++ ) { pstmt.setInt(1, i); pstmt.setString(2, strBuf); pstmt.addBatch(); batchCount++; } It of course failed