Welcome to Dream.In.Code
Become an Expert!

Join 150,131 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,127 people online right now. Registration is fast and FREE... Join Now!




Predict database size

 
Reply to this topicStart new topic

Predict database size, Calculate database size for feasibility study

porcupine75
26 Jul, 2008 - 04:43 PM
Post #1

New D.I.C Head
*

Joined: 3 Sep, 2007
Posts: 11


My Contributions
Hello Guys!

I have done not this thing before but I think this would be useful for feasibility studies.
Dependent or not on database software, how can one calculate (for tell) a disk space required for a certain/huge amount of records for one's database.
Here's a sample single table design:
Transactions Table
TransactionCounter AutoIncrement Long
TransactionId Number Long
TransactionDate Date/Time
StockCode Number Long
Quantity Number Short
Sub-Total Number Short
Remarks String * 30
Posted Boolean

Thanks! rolleyes.gif

This post has been edited by porcupine75: 26 Jul, 2008 - 04:45 PM
User is offlineProfile CardPM
+Quote Post

Martyr2
RE: Predict Database Size
26 Jul, 2008 - 04:54 PM
Post #2

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,660



Thanked: 313 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
Well your estimation is going to greatly depend on the database type you use. Just because databases store data differently and some are more sloppy than others.

However one great article you can check out refers to how you can estimate the size of a database based on its tables, clustered/non clustered indexes, and heap.

Estimating the Size of a Database - SQL Server - MSDN

The factors can be applied to many other databases. By knowing the size of indexes, calculating the overall storage size of tables based on the length of fields * number of rows, and calculating the heap you can get a good approximation.

That would be a great place to start the search. smile.gif
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 01:46AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month