List:General Discussion« Previous MessageNext Message »
From:Dan Nelson Date:June 15 2007 3:44pm
Subject:Re: Innodb tablespace
View as plain text  
In the last episode (Jun 15), Ben Clewett said:
>  > Are there any reasons why one would NOT use separate ibd files for
>  > each table
>  Fragmentation for one.
>  A single file can re-use empty space from deleted rows for any added
>  rows.  A single file can only re-use space from that one file.
>  Therefore the sum table size will be larger with many files. 
>  Depending on how much data you regularly delete.

I would claim that the file-per-table method reduces fragmentation and
overall tablepsace size as compared to the tablespace method:
OPTIMIZE'ing a file-per-table table recreates that .ibd file and
removes all the empty space. To do that with the single tablespace
setup, you would have to dump all tables, delete your tablespace file,
and reload.

	Dan Nelson
Innodb tablespaceOlaf Stein15 Jun
  • Re: Innodb tablespaceAnanda Kumar15 Jun
  • Re: Innodb tablespaceBen Clewett15 Jun
    • Re: Innodb tablespaceDan Nelson15 Jun
  • Re: Innodb tablespaceBen Clewett15 Jun