Barracuda文件格式和Antelope的区别

/** There are currently two InnoDB fileformats which are used to group
features with similar restrictions anddependencies. Using an enum allows
switch statements to give a compilerwarning when a new one is introduced. */
enum innodb_file_formats_enum {
         /**Antelope File Format: InnoDB/MySQL up to 5.1.
         Thisformat includes REDUNDANT and COMPACT row formats */
         UNIV_FORMAT_A             =0,
 
         /**Barracuda File Format: Introduced in InnoDB plugin for 5.1:
         Thisformat includes COMPRESSED and DYNAMIC row formats.  It
         includesthe ability to create secondary indexes from data that
         isnot on the clustered index page and the ability to store more
         dataoff the clustered index page. */
         UNIV_FORMAT_B             =1
};

Barracuda文件格式由innodb5.1引入,包括compressed和dynamic文件格式。Barracuda与Antelope的区别在于barracuda可以在不在聚集索引页的数据上创建二级索引,并且能存更多数据在溢出页。

你可能感兴趣的:(MySQL源码分析)