mysql - Does InnoDB have static tables? -


i reading mysql documentation , wondering whether myisam's "static" table format applies on innodb or not? gain performance, if use char instead of varchar when real lengths varies between 0 , 100 characters or using varchar(100) better?

innodb have fixed-width rows , there can advantage declaring columns in table fixed-width. main benefit "holes" in page can reused insertion, since rows same length. makes space re-use more efficient. not try force fixed-width strings on few dozen bytes though, cost of storing data per page (and fewer rows per page) overwhelm savings/gains you'd more efficient space re-usage.

however, having fixed-width rows not allow optimization of row-scanning (like myisam) whatsoever. innodb's row storage page-based , uses b+tree doubly-linked lists of pages, , singly-linked records within page. row traversal using these structures , can't done other way.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -