Jump to content

MySQL load concerns


the_924

Recommended Posts

Would I be going to far with a plan like this:

My teacher is having me make a site for him to post notes/quizzes/such for AP students, he plans to make a little extra cash using Google Ads; however, with all the traffic he wants, I'm confused as to how efficient my current idea for quizzes is. Here's the quiz mysql table:
[code]CREATE TABLE `' . FT_MYSQL_PREFIX . 'quiz`
                            (
                            id int (5) NOT NULL auto_increment,
                            title varchar(100) NOT NULL,
                            question_first_id INT(6) NOT NULL,
                            question_last_id INT(6) NOT NULL,
                            question_list text NOT NULL,
                            PRIMARY KEY (id)
                            );[/code]

And here's the question table:
[code]CREATE TABLE `' . FT_MYSQL_PREFIX . 'quiz_question`
                            (
                            `id` INT(5) NOT NULL auto_increment,
                            `question` TEXT NOT NULL,
                            PRIMARY KEY (`id`)
                            );[/code]

Basically when you create a quiz, it batch adds all the quiz questions to the quiz question table, so you can add each individual question to a 'favorites' list to help you study later. The Quiz table stores a reference from the first question it added to the last, so it can still generate the same quiz.

Is this a decent way to go about it? Any general suggestions about MySQL speed I may be missing?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.