How does INNODB in mysql 5.0 tablespace per file grow?
I can just add data and hope to catch when the table space grows,
but I really want to understand the internals of INNODB and build
an accurate modal on how big the table space will grow when X
rows are added.
- Some things that need to be known.
- Data stored in INNODB is stored as pages with a default size
of 16KB.
- INNODB adds a page for every secondary INDEX
- INNODB has some overhead of about 18 bytes (maybe more) per
row
First let's set up a test environment
[Read more]
delimiter //
CREATE PROCEDURE resettest()
begin
DROP TABLE IF EXISTS testvarchar;
CREATE TABLE `testvarchar` (
`id` int(10) unsigned NOT NULL,
`data_key` varchar(255) default …