If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > New to databases - is this a bad way to do this?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-28-08, 03:44
NickPaul NickPaul is offline
Registered User
 
Join Date: Feb 2008
Posts: 2
Lightbulb New to databases - is this a bad way to do this?

Please excuse my lack of knowledge on database deisgn, programming etc is just a hobby of mine.

Concept: A large number (hopefully lol i dream of oneday like 10000) of users register to use this application im creating. Im fine with storing their details etc in a table. Its all good.

The only other thing i need to store in the database is what questions (represented by a number, i.e question 1003) the user has attempted and what mark they got. Im just wondering if the following Table would be an acceptable solution for this.

Table name: UserProgress

Fields: UserID Q# Mark

Now everytime the user completes a question a new entry will be entered into this table, the userID the question number and the mark they achieved.

I.e

UserID Q# Mark
Jack 20 5
Jack 1001 9

Now i was doing some numbers, and i figured id prob have around 2000 questions, and possibily 10000 users haha i was thinking wow if each user does most of the questions i could be looking at 20'000'000 entries into that table...

My Question is: Is this design acceptable??
Is 20 million too many entries for a MySQL Table???
And how much space will be used up by the db assumming the numbers i stated. Im going to start by running the app on a cheap webserver - with 500mb storage space.

Thanks for any advice, Nick
Reply With Quote
  #2 (permalink)  
Old 02-28-08, 07:43
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
Originally Posted by NickPaul
My Question is: Is this design acceptable??
yes
Quote:
Originally Posted by NickPaul
Is 20 million too many entries for a MySQL Table???
no
Quote:
Originally Posted by NickPaul
And how much space will be used up by the db assumming the numbers i stated. Im going to start by running the app on a cheap webserver - with 500mb storage space.
that should be plenty
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 02-28-08, 17:54
NickPaul NickPaul is offline
Registered User
 
Join Date: Feb 2008
Posts: 2
Haha thanks heaps :)

Thanks for writting back, i really didnt want to get started without checking on that. Have a good one, Nick
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On