Skip to content

Commit 1a474e9

Browse files
committed
Increase batch size.
1 parent 1062cda commit 1a474e9

File tree

1 file changed

+1
-1
lines changed
  • sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc

1 file changed

+1
-1
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JdbcUtils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ object JdbcUtils extends Logging {
125125
}
126126
stmt.addBatch()
127127
rowCount += 1
128-
if (rowCount % 1000 == 0) {
128+
if (rowCount % 10000 == 0) {
129129
stmt.executeBatch()
130130
rowCount = 0
131131
}

0 commit comments

Comments
 (0)