{"title":"插入1000条记录","inframe":false,"hidden":false,"roles":{"dev":1},"pageLink":"","children":[{"configs":{"serverScript":"//基于演示目的，不使用批处理，批处理具有更高效率\nvar current = java.lang.System.currentTimeMillis,\n  start = current(),\n  i, statement, connection = DbUtil.getConnection();\ntry {\n  statement = connection.createStatement();\n  statement.executeUpdate('truncate table WB_PAGING');\n  for (i = 1; i < 1001; i++)\n    statement.executeUpdate('insert into WB_PAGING values(' + i + ')');\n} finally {\n  if (statement) DbUtil.close(statement);\n  if (connection) DbUtil.close(connection);\n}\napp.send(String(current() - start));","itemId":"module"},"children":[],"type":"module","expanded":false}],"iconCls":""}