I am making a test system and need some suggestions on how I can store all of the questions in order to display them throughout the test.
I have a question table and a test table with a many to many relationship. Another table, testquestions, stores which questions are for each test.
When a user takes the test I want to display each question individually and then record their answers into a session.
The question is how do I store all of the question IDs so I can display the test questions.
It seems like I only have two options.
1. search for all question IDs in a test, and store them in a recordset each time. Then look throught the questions and find the newest one that hasn't been answered. (I would have to do this proccess for every question, which would tie up resources doing all of the searches "i think"if the test was fifty questions i would have 50 of the same searches
2. do one search and store it all in a session. I could then use this session and not have to search each time, but it still seems like it would use alot of resources. a fifty question test would require fifty sessions per person.
Any suggestions on the best way to do this?
I have a question table and a test table with a many to many relationship. Another table, testquestions, stores which questions are for each test.
When a user takes the test I want to display each question individually and then record their answers into a session.
The question is how do I store all of the question IDs so I can display the test questions.
It seems like I only have two options.
1. search for all question IDs in a test, and store them in a recordset each time. Then look throught the questions and find the newest one that hasn't been answered. (I would have to do this proccess for every question, which would tie up resources doing all of the searches "i think"if the test was fifty questions i would have 50 of the same searches
2. do one search and store it all in a session. I could then use this session and not have to search each time, but it still seems like it would use alot of resources. a fifty question test would require fifty sessions per person.
Any suggestions on the best way to do this?