I am trying to estimate database size for know column range. I have searched on it but cant find any proper rules.
I have created a database with single table and this table have 40 Columns. One column is a int primary key and remaining 39 columns are LONGTEXT type.
I am expecting 2 million records.
CREATE TABLE IF NOT EXISTS `TempTable` (
`Id` int(11) NOT NULL AUTO_INCREMENT,
`Column1` longtext,
`Column2` longtext,
--
--
--
`Column39` longtext,
PRIMARY KEY (`Id`)
)
How can I do this? Do I need to insert fake data to calculate the size?