You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "shannxisj (via GitHub)" <gi...@apache.org> on 2023/05/19 13:12:42 UTC

[GitHub] [incubator-seatunnel] shannxisj commented on issue #4658: [Bug] [connector-jdbc] mysql to mysql slow

shannxisj commented on issue #4658:
URL: https://github.com/apache/incubator-seatunnel/issues/4658#issuecomment-1554552604

   I had the same problem, the version is the same as his, but I added rewriteBatchStatements=true in the url, which did not solve it
   
   `env {
     job.mode = "BATCH",
     execution.parallelism = 10
   }
   source {
       Jdbc {
           url = "jdbc:mysql://192.168.0.4:3307/sql?rewriteBatchStatements=true"
           driver = "com.mysql.cj.jdbc.Driver"
           user = "root"
           password = "root"
           query = "select * from test1"
       }
   }
   
   
   sink {
     Jdbc {
           url = "jdbc:mysql://192.168.0.4:3307/sql?rewriteBatchStatements=true"
           driver = "com.mysql.cj.jdbc.Driver"
           user = "root"
           password = "root"
           query = "insert into test1_copy2(brand,stt,edt) values(?,?,?)"
     }
   }`
   
   `    Job Progress Information
   ***********************************************
   Job Id                    :  711925978242220033
   Read Count So Far         :                6048
   Write Count So Far        :                3999
   Average Read Count        :               100/s
   Average Write Count       :                66/s
   Last Statistic Time       : 2023-05-19 20:59:42
   Current Statistic Time    : 2023-05-19 21:00:42
   ***********************************************
   `


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org