You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2016/09/14 16:22:20 UTC

[jira] [Commented] (SPARK-17536) Minor performance improvement to JDBC batch inserts

    [ https://issues.apache.org/jira/browse/SPARK-17536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15490849#comment-15490849 ] 

Apache Spark commented on SPARK-17536:
--------------------------------------

User 'blue666man' has created a pull request for this issue:
https://github.com/apache/spark/pull/15098

> Minor performance improvement to JDBC batch inserts
> ---------------------------------------------------
>
>                 Key: SPARK-17536
>                 URL: https://issues.apache.org/jira/browse/SPARK-17536
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.0.0
>            Reporter: John Muller
>            Priority: Trivial
>              Labels: perfomance
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> JDBC batch inserts currently are set to repeatedly retrieve the number of fields inside the row iterator:
> https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JdbcUtils.scala#L598
> val numFields = rddSchema.fields.length
> This value does not change and can be set prior to the loop.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org