- 论坛徽章:
- 0
|
原帖由 爱佟儿 于 2009-2-13 11:02 发表 ![]()
比如
用ibdata 或者用 innodb_file_per_table
谁能说说他们各自的优缺点呢?
I would like to recommend to use "innodb_file_per_table" for huge data records,
to easy manage tables und diskspaces.
Innodb has a big Bug! you can not shrink (or reduce) the filesize of ibdata even
real table datasize is smaller! (Postgrsql can do that with VACUUM)
But if InnoDB configured as "innodb_file_per_table", using mysqldump for
a table and restore it you can optimize <the_table>.ibd size and diskspace!
Because DROP <table> will automaticly remove <table>.ibd file. If use one
shared ibdata file will do not reduce the file size. |
|