 |
BOOK: Beginning ASP.NET 4 : in C# and VB
 | This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|
|

November 16th, 2010, 05:01 PM
|
|
Authorized User
|
|
Join Date: Oct 2010
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
SQL server size
Hi Imar,
I have a question about the size of SQL Server database. If I use the example project in your book and then let's say useres will enter about 50 photos a day as an average then what is the size of database that could help for 1 yeark taking into acount some comments from use on photos let's say 10 cmments on every photo.
|
|

November 16th, 2010, 05:10 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Since the photo's are not stored in the database, it won't be much. Tens of megabytes at the most I think.
But the only way to find out for sure is to test it. You can use EF to insert hundreds of fake pictures and see how the database grows,
Cheers,
Imar
|
|

November 16th, 2010, 05:14 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
|
|
??? Can't you guesstimate it, Imar?
If the photos aren't stored in the DB, then you must be storing the image names, and you can surely come up with a guess as to average record size, no? Or are there other fields in the table(s) that are highly variable in size?
|
|

November 16th, 2010, 05:21 PM
|
|
Authorized User
|
|
Join Date: Oct 2010
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by Imar
Since the photo's are not stored in the database, it won't be much. Tens of megabytes at the most I think.
But the only way to find out for sure is to test it. You can use EF to insert hundreds of fake pictures and see how the database grows,
Cheers,
Imar
|
In this case what type of database you recommened SQL Server Express (which most people do not recommened I do not why) or the web edition or which exactly?
|
|

November 16th, 2010, 05:43 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Quote:
|
Or are there other fields in the table(s) that are highly variable in size?
|
Yes, there are. Each photo ahs predictable fields (ImageUrl, AlbumId, CreateDateTime etc) but also a Description and Tooltip field. The Description is an nvarchar(max) so I guess it all depends on what you have to say about the pic ;-)
Quote:
|
In this case what type of database you recommened SQL Server Express (which most people do not recommened I do not why) or the web edition or which exactly?
|
In terms of size, it doesn't matter. They all use the same engine under the hood. It all comes down to licensing. Express could be an option for a small site, but is limited in database size (10G if I recall correcty) and CPU (1) and lacks many of the more advanced features. For a comparison, take a look here: http://www.microsoft.com/sqlserver/2.../editions.aspx
Cheers,
Imar
|
|

November 16th, 2010, 06:55 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
|
|
In any case, unless you are hosting the site yourself (or have a dedicated or semi-dedicated server), you should almost surely just use whichever version of SQL Server comes as part of your hosting package.
Quote:
|
I guess it all depends on what you have to say about the pic ;-)
|
Nice! LOL! Great answer!
|
|
 |
|