Two InnoDB tables of MySQL are getting fragmented whenever we insert data into them.

After that when I use optimize table command, it gets defragmented.

Is there any way to avoid fragmentation as I want to add thousands of rows into table?