sunxiaojian commented on PR #5341:
URL: https://github.com/apache/seatunnel/pull/5341#issuecomment-1686340331

   Before optimization:
   
   env {
     # You can set engine configuration here
     execution.parallelism = 1
     job.mode = "STREAMING"
     checkpoint.interval = 5000
   }
   
   source {
     MySQL-CDC {
        result_table_name = "customers_mysql_cdc"
       server-id = 5660
       username = “*****”
       password = “******”
       table-names = [“test_database.source_table"]
       exactly_once = false
       base-url = "jdbc:mysql://localhost:3306/test_database?useSSL=false"
       catalog {
         factory = MySQL
       }
     }
   }
   
   sink {
     Console {
     }
   }
   
   
![image](https://github.com/apache/seatunnel/assets/6446530/ab0856b9-166b-4b5b-9d08-681daf661c77)
   
   
   
   After optimization:
   
   We can configure the data size for each batch processing through 
'debezium.max.batch.size’, 
   
   env {
     # You can set engine configuration here
     execution.parallelism = 1
     job.mode = "STREAMING"
     checkpoint.interval = 5000
   }
   
   source {
     MySQL-CDC {
       result_table_name = "customers_mysql_cdc"
       server-id = 5660
       debezium.max.batch.size = 300
       username = “*****”
       password = “******”
       table-names = [“test_database.source_table"]
       exactly_once = false
       base-url = "jdbc:mysql://localhost:3306/test_database?useSSL=false"
       catalog {
         factory = MySQL
       }
     }
   }
   
   sink {
     Console {
     }
   
   }
   
   
![image](https://github.com/apache/seatunnel/assets/6446530/9745a55b-3fb9-4d2e-af38-3942d08ae4e5)
   
   
   
   


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