MySQL Forums
Forum List  »  General

Re: Database Size Help Please
Posted by: STARYNKEVITCH Basile
Date: February 06, 2005 06:05PM

Jose Saiz wrote:
> What I meant was!, What is the right Database Size
> for a 1.2 Millions Rows of data in one single
> table with with eight columns
>
> Explain:
>
> Table Inventory (Contains 1.2 Millions rows of
> data)
> 1 = StockID (Int())
> 2 = Title (Varchar(30)
> 3 = Genre (Varchar(30)
> 4 = Artist (Varchar(30)
> 5 = Formatype (Varchar(4)
> 6 = QtyOh (Int())
> 7 = Price (Float()
> 8 = VendorID (Varchar(10)

You could compute the storage requirement per row using http://dev.mysql.com/doc/mysql/en/storage-requirements.html
Then multiply the needed storage by the number of rows.

Indexes also use disk storage. And suitable indexes are important for performance.

You probably would get a better estimation by running (for tests) a MySQL/Linux/PHP/Apache on your PC, and measuring precisely there the real occupation.

> My Hosting only giving me 25mb for my MySQL database size.

25Mb is not a lot for 1.2Mrows. It means 20 bytes per row. This is really small.

Did you consider buying more storage from your hosting company, or changing your hosting company to another one? In France, there are several hosting companies selling nearly a gigabyte of disk storage, and Web hosting, for less than about 100 euros per year. Hosting prices are a lot cheaper than inhouse software development costs!

--
Basile STARYNKEVITCH :::: http://starynkevitch.net/Basile/

Options: ReplyQuote


Subject
Written By
Posted
January 15, 2005 11:25AM
February 05, 2005 01:11PM
Re: Database Size Help Please
February 06, 2005 06:05PM


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.