samgang opened a new issue, #4658:
URL: https://github.com/apache/incubator-seatunnel/issues/4658

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
   The speed of data synchronization from MySQL to MySQL is very slow. So how 
should we improve the synchronization speed?
   
   Also, is there a preSql function? such as deleting target table data before 
synchronization
   
   ### SeaTunnel Version
   
   apache-seatunnel-incubating-2.3.1
   
   ### SeaTunnel Config
   
   ```conf
   env {
     execution.parallelism = 1
     job.mode = "BATCH"
   }
   
   source {
       Jdbc {
           url = "jdbc:mysql://localhost:3306/test"
           driver = "com.mysql.cj.jdbc.Driver"
           connection_check_timeout_sec = 100
           user = "xxxxxx"
           password = "xxxxxx"
           query = "select id,name from t1"
           partition_column = "id"
           partition_num = 10
       }
   }
   
   sink {
     jdbc {
       url = "jdbc:mysql://localhost:3306/test"
       driver = "com.mysql.cj.jdbc.Driver"
       user = "xxxxxx"
       password = "xxxxxx"
       query = "INSERT INTO t2(id,name) VALUES (?,?)"
     }
   }
   ```
   
   
   ### Running Command
   
   ```shell
   ./bin/seatunnel.sh --config test2.conf  -m local
   ```
   
   
   ### Error Exception
   
   ```log
   Read Count So Far         :              282048
   Write Count So Far        :              279999
   Average Read Count        :               233/s
   Average Write Count       :               233/s
   Last Statistic Time       : 2023-04-24 17:33:30
   Current Statistic Time    : 2023-04-24 17:34:30
   
   Read Count So Far         :              295048
   Write Count So Far        :              292999
   Average Read Count        :               216/s
   Average Write Count       :               216/s
   Last Statistic Time       : 2023-04-24 17:34:30
   Current Statistic Time    : 2023-04-24 17:35:30
   ```
   
   
   ### Flink or Spark Version
   
   no
   
   ### Java or Scala Version
   
   1.8
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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