I indexed a huge table today containing 2 billion records. I thought MySQL would eat up my 2 TB disk ... Disk consumption increased to 400 GB and then 500 GB, and then finally dropped to 180 GB, and MySQL says it successfully added the index. Why is space expanding and what happens as a result? Can someone please give me some pointers?
source
share