davidzollo commented on issue #8388:
URL: https://github.com/apache/seatunnel/issues/8388#issuecomment-3069694645

   MySQL batch to SQLServer
   
   
   ```
   
   env {
     job.mode = "BATCH"
     parallelism = 4
   }
   
   source {
     Jdbc {
       url = 
"jdbc:mysql://your-mysql-host:3306/your_dbserverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true"
       driver = "com.mysql.cj.jdbc.Driver"
       user = "your_user"
       password = "your_password"
       
       query = "SELECT * FROM your_table where id>? "
       partition_column = "id"
       partition_num = 4
       fetch_size = 5000
     }
   }
   
   sink {
     Jdbc {
       url = 
"jdbc:sqlserver://your-sqlserver-host:1433;databaseName=your_db;useBulkCopyForBatchInsert=false"
       driver = "com.microsoft.sqlserver.jdbc.SQLServerDriver"
       user = "your_user"
       password = "your_password"
   
       table = "your_table"
       primary_keys = ["id"]
       enable_upsert = false   
       batch_size = 5000
       auto_commit = false
       max_retries = 2
     }
   }
   ```


-- 
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