davidzollo commented on issue #9562:
URL: https://github.com/apache/seatunnel/issues/9562#issuecomment-3069681858
You can have a try like this
```
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"
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]