Quantcast
Channel: MySQL Forums - InnoDB
Viewing all articles
Browse latest Browse all 1954

Why is there a GB discrepancy between innodb_file_per_table=ON vs innodb_file_per_table=OFF (no replies)

$
0
0
Hi just a little context.

We had a database server that was configured with the default innodb_file_per_table=ON. It was unnoticed but as the server schemas grew to over 1000, Backups were really so as there as many,many files. Additionally, we had over 522,350 .ibd files due to the nature of the application and the table requirements which in turn had sporadic open file limits hit .

This is not the reason for my post. 😊

To convert it in the ibdata1 file, I put the server in READ_LOCK and took a mysqldump.

After restoring that file to another server clean server with innodb_file_per_table=OFF, the ibdata1 file grew to only 30 GB.

innodb_file_per_table=ON
DATA Folder = 93.6 GB (522,350 .ibd files)

Mysqldump resulted in a 8.7 GB db.sql file

innodb_file_per_table=OFF
DATA Folder = 30 GB (1 ibdata1 file)

Why is there a 63 GB discrepancy between innodb_file_per_table=ON vs innodb_file_per_table=OFF

Viewing all articles
Browse latest Browse all 1954

Trending Articles