- Are thinking the table fragmentation will be happened with only DELETE’s ?
- Do you believe the INSERT’s will also cause the table fragmentation ?
Yes, INSERT’s with the ROLLBACK can also create the table fragmentation . In this blog I am going to explain how the INSERT is causing the table fragmentation .
How the table fragmentations is happening with INSERT and ROLLBACK ?
When you triggered the INSERT, it will start to write the data into it’s table space file ( .ibd ) . Right ?
From the snap, I have created the table and started the transaction ( BEGIN ) with INSERT . Within the transaction the INSERT has been completed but still I did not commit / rollback the transaction .
You can check the table space file growth to 1.2 GB .
Now, I am going to rollback the transaction .
After the ROLLBACK completed, still the …
[Read more]