Yanhuanjin commented on issue #4658:
URL: https://github.com/apache/seatunnel/issues/4658#issuecomment-1857453272

   I tried all the methods metioned above, and it was still very slow. mysql to 
postgre.
   My setting looks like:
   `env {
     execution.parallelism = 10
     job.mode = "BATCH"
   }
   
   source{
       Jdbc {
           url = "jdbc:mysql://host:port/test?rewriteBatchStatements=true"
           driver = "com.mysql.cj.jdbc.Driver"
           connection_check_timeout_sec = 3600
           user = "root"
           password = "xxxxx"
           query = "select * from test"
           fetch_size = 10000
       }
   }
   
   sink {
       Jdbc {
           url = "jdbc:postgresql://host:port/test?rewriteBatchStatements=true"
           driver = "org.postgresql.Driver"
           connection_check_timeout_sec = 3600
           user = "root"
           password = "xxxx"
           database = "test"
           table = "ods.test"
           generate_sink_sql = true
           primary_keys = ["id"]
           compatible_mode = "postgresLow"
           batch_size = 10000
       }
   }`


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to