olaf
Fri 11 August 2006, 11:26 am GMT +0300
Hello,
I know that a optimized table layout reduce the overhead for a n table.
I have this table to collect some visitor stats:
I use this table in several website and there are not really problems, but now I noticed a big overhead (592,816 Bytes), how does this happen?
I know that a optimized table layout reduce the overhead for a n table.
I have this table to collect some visitor stats:
Code:
CREATE TABLE `visits` (
`id` int(11) NOT NULL auto_increment,
`ip_adr` varchar(15) NOT NULL default '',
`referer` varchar(250) NOT NULL default '',
`country` char(2) NOT NULL default '',
`client` varchar(100) NOT NULL default '',
`visit_date` date default NULL,
`time` time NOT NULL default '00:00:00',
`on_page` varchar(100) NOT NULL default '',
`hostname` varchar(100) NOT NULL default '',
PRIMARY KEY (`id`)
) TYPE=MyISAM;
`id` int(11) NOT NULL auto_increment,
`ip_adr` varchar(15) NOT NULL default '',
`referer` varchar(250) NOT NULL default '',
`country` char(2) NOT NULL default '',
`client` varchar(100) NOT NULL default '',
`visit_date` date default NULL,
`time` time NOT NULL default '00:00:00',
`on_page` varchar(100) NOT NULL default '',
`hostname` varchar(100) NOT NULL default '',
PRIMARY KEY (`id`)
) TYPE=MyISAM;
I use this table in several website and there are not really problems, but now I noticed a big overhead (592,816 Bytes), how does this happen?
