melin created SPARK-47389: ----------------------------- Summary: spark jdbc one insert with multiple values Key: SPARK-47389 URL: https://issues.apache.org/jira/browse/SPARK-47389 Project: Spark Issue Type: New Feature Components: SQL Affects Versions: 4.0.0 Reporter: melin
Many databases support a single insert sql to write multiple rows of data. Write performance is more efficient than batch execution of multiple sql files https://github.com/apache/spark/blob/9986462811f160eacd766da8a4e14a9cbb4b8710/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JdbcUtils.scala#L725 example: {code:java} INSERT INTO Customers (Name, Age, Active) ('Name1',21,1) INSERT INTO Customers (Name, Age, Active) ('Name2',21,1) Vs INSERT INTO Customers (Name, Age, Active) ('Name1',21,1), ('Name2',21,1) {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org