代码是
try{
sql = "select * from account";
rs = st.executeQuery(sql);
while (rs.next()) {
//取出三个字段的值,然后使用java,aes算法使值变化
updateSql = "update account set account='" + test2 ...
st2.executeUpdate(updateSql);
} catch (Exception e) {
e.printStackTrace();
} finally { // bw.close();
// bw2.close();
st2.close();
st.close();
conn.close();
}
发现,更新时一小时才1000条,请问如果提高速度,那个aes算法,不是性能的瓶颈。谢谢。
try{
sql = "select * from account";
rs = st.executeQuery(sql);
while (rs.next()) {
//取出三个字段的值,然后使用java,aes算法使值变化
updateSql = "update account set account='" + test2 ...
st2.executeUpdate(updateSql);
} catch (Exception e) {
e.printStackTrace();
} finally { // bw.close();
// bw2.close();
st2.close();
st.close();
conn.close();
}
发现,更新时一小时才1000条,请问如果提高速度,那个aes算法,不是性能的瓶颈。谢谢。
final List mphs = WebUtils.getMphs(qsh, zzh);
if (mphs != null && mphs.size()>0) {
this.getJdbcTemplate().getJdbcOperations().batchUpdate(updateZt, new BatchPreparedStatementSetter() {
public void setValues(PreparedStatement ps, int i) throws SQLException {
ps.setString(1, String.valueOf(mphs.get(i)));
}
public int getBatchSize() {
return mphs.size();
}
} );
}
}