MySQL Forums
Forum List  »  InnoDB

Re: How Avg_row_length is calculated?
Posted by: Benjamin Dunlap
Date: August 19, 2008 03:44PM

This is confusing me as well. I have table with four INT columns (16 bytes), 2 SMALLINT columns (4 bytes), and one FLOAT column (4 bytes). Maximum row size should be 24 bytes, shouldn't it?

But when I put data in the table I see various avg_row_length values, including 70.

As far as I can tell avg_row_length is something close to 'data_length' / 'rows'. But the value of 'rows' is confusing too, because it doesn't seem to necessarily match the number of rows in the table.

Thanks!

Options: ReplyQuote


Subject
Views
Written By
Posted
18975
July 19, 2008 03:55PM
Re: How Avg_row_length is calculated?
5610
August 19, 2008 03:44PM
5124
August 28, 2008 10:57PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.