I am trying to synchronize data from one database to another in MySQL, using Java.
To improve performance, I try to use MySQL bulk insert syntax:
insert into table xxx(...) values (row1...) (row2...).
The problem is, how many rows should I insert at a time, so as not to violate the MySQL's max_allowed_packet
setting?