Home » Performance » MySQL » InnoDB's compact row format
InnoDB's compact row format [message #1473] Mon, 25 June 2007 06:12 Go to previous message
razdaman  is currently offline razdaman
Messages: 26
Registered: May 2007
Junior Member
Hi!

For quite some time I've used only myisam as storage engine for my mysql tables. During my early years as a developer I though that "myisam is the simplest storage engine, therefore it is also the fastest". After reading several advanced books about mysql and general database theory I now realize that this isn't always the truth. Thus I'm now trying to master the features innodb storage engine.

Today I realized that innodb does not used "fixed"/"variable" format-type as I'm used to with MyIsam. Starting with 5.0.3 it uses the "compact" row format as default. This format uses variable row length (right??) as "variable" row format I know from myisam. As far as I have understood, variable row length means less disk space and slower seeks. Therefore myisam uses only "variable" row format when it is "forced to" (if there are any varchat, text columns).

My question is therefore: how come innodb uses a variable row format as default? Isn't that slower than allocating x bytes for each row so the disk seeks will be faster?

Please enlighten me, I'm a bit confused Smile

(I hope my English is okay, if not - just ask what I mean, please)

Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:what is the purpose of ibdata1,ib_logfile0,ib_logfile1
Next Topic:replication problem after master crash
Goto Forum:

  


Current Time: Thu Jul 9 17:58:30 EDT 2009

Total time taken to generate the page: 0.08212 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software

MySQL is a trademark of Sun Microsystems.
InnoDB is a trademark of Oracle Corp.

Percona Performance Forums are a service of Percona, Inc.
Not affiliated with Sun Microsystems or Oracle Corp.