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 > Database Server Software > MySQL > db design

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-15-04, 06:48
hamzaf hamzaf is offline
Registered User
 
Join Date: Nov 2004
Posts: 3
db design

Hi,
I'm currently developing a website where each registered user has to pass some tests.
I want to track each user's progress:
That is, for each user I want to know which tests he passed, when he passed them, after how many failures, etc...
I'm using a MySQL database, and I'm wondering where I could store all these user info.

What do you think?

Thanks in advance,
Hamza.
Reply With Quote
  #2 (permalink)  
Old 11-15-04, 07:35
Markus123 Markus123 is offline
Registered User
 
Join Date: Nov 2004
Posts: 14
Do you want to check the sql-statements a user has done or do you want to know the web-sites (each web-site is a test) the user has visited?

Greetings,
Markus
Reply With Quote
  #3 (permalink)  
Old 11-15-04, 08:25
Sudar Sudar is offline
Registered User
 
Join Date: Jul 2004
Location: Mars
Posts: 137
Thumbs up try this

Hai,

You can store the user details in a seperate table called users where each user will have a unique userid (primary key),
then store all the details abt the test in a seperate table, and the test results in a seperate table,

The following is a rough schema,

Userdetails
----------

userid,(primary key)
fname,
lname,
(any other details like email..)

TestDetails
-----------

Testid,(primary key)
testname,
testdescription,
(any other details for test)


TestResults
-----------

resultid (primary key),
userid,
testid,
status (pass or fail)
date,


To find out when the user took the test and to check the result of the test u can query the testresults table...

Hope this helps...
__________________
Sudar

--
My Blog
Reply With Quote
  #4 (permalink)  
Old 11-15-04, 13:36
hamzaf hamzaf is offline
Registered User
 
Join Date: Nov 2004
Posts: 3
Thanks for your reply.
If I have for example 5000 users and 200 tests, I would have 1 000 000 entries in my table. Will this be a problem? Is that too much on MySQL?

Thanks again,
Hamza.
Reply With Quote
  #5 (permalink)  
Old 11-15-04, 22:25
Sudar Sudar is offline
Registered User
 
Join Date: Jul 2004
Location: Mars
Posts: 137
Thumbs up

hai..

I have used mysql with well over 2000000 and have not got any adverse performance problems. So i hope 1000000 will not create any problems for u.
By the way is 5000 users and 200 tests is the maximum count expected or is the minimum count expected ?
__________________
Sudar

--
My Blog
Reply With Quote
  #6 (permalink)  
Old 11-16-04, 13:51
hamzaf hamzaf is offline
Registered User
 
Join Date: Nov 2004
Posts: 3
5000 users and 200 tests is the very maximum expected

Thanks your help,
Hamza.
Reply With Quote
  #7 (permalink)  
Old 11-16-04, 23:18
Sudar Sudar is offline
Registered User
 
Join Date: Jul 2004
Location: Mars
Posts: 137
Quote:
Originally Posted by hamzaf
5000 users and 200 tests is the very maximum expected

Thanks your help,
Hamza.
So no probs...Go head and implement your db in MySQL and i am sure MySQL will be happy to give u the performance that u need
__________________
Sudar

--
My Blog
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