如何在网站中一次为多个用户处理多个问题 [英] How to handle multiple questions for multiple users at a time in website

查看:72
本文介绍了如何在网站中一次为多个用户处理多个问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在实施考试系统,其中有很多学生登录并准备考试。但是我们的考试失败了(减速),因为没有用户增加。

我们试图解决这个问题。我们将考试存储在xml文件中,然后更新每个学生的答案,但系统变慢......

我想知道标准练习

1)如何维护Q& ; A为多个学生,并为每个学生插入和更新?即。我们应该保持Q&对于每个学生用XML,文本文件或会话中的数据表?这是正确的方法吗?



我尝试过:



我们尝试为每个学生提供文本文件,但这也会耗费时间..

We are implemnting exam system where lot of students logged in and prepares for exam .But our exam failed(slows down) as there no of users increases.
We tried to resolve this issue.As we stores exams in xml file and then updates answers for every students but then system becomes slow...
I want to know standard practice for
1) How to maintain Q& A for multiple students and insert as well as update for every student?ie. should we maintain Q & A for every student in XML,text file or datatable in session ?which is proper way?

What I have tried:

We tried for text file for every student but this causes also time consuming ..

推荐答案

使用数据库。数据库确实支持并发(例如,参见并发控制 - 维基百科 [ ^ ])。
Use a database. Databases do have support for concurrency (see, for instance Concurrency control - Wikipedia[^]).


这篇关于如何在网站中一次为多个用户处理多个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆