Background
I am writing a survey that is going to a large audience. It contains 15 questions, and there are five possible answers to each question along with potential comments.
The user can view all 15 questions, answering them in any order, and is allowed to leave the survey at any time and return to answer the remaining questions.
After answering all 15 questions, a submit button appears, which allows them to send questions as final answers. Prior to this step, all responses should be restored when the user loads the survey page.
The requirement is that the user sees only one question on the page, and the Previous and Next buttons allow the user to scroll through the questions.
Demand
I can ask this question every time the user clicks the button and saves the current answer and so on, but this will be a large number of calls to the database, which is already heavily used. I donβt have time to buy a new server, etc. Therefore, I have to do what I have. Is there a way to cache questions on the user's machine and / or answers? Obviously, I need the response data to be safe and only known to the user, so I feel a little stuck as the best way to do this. Any pointers?
I am ready to offer a generosity of 100 points on this subject, if it means that I get a good discussion of quality and feedback.
Ian rock
source share