当前位置:网站首页>Thoughts on the optimization of examination papers in the examination system
Thoughts on the optimization of examination papers in the examination system
2022-04-23 19:15:00 【Sound God】
In daily life , There will be a large number of users taking exams online , Enter the test paper 、 Answer the questions 、 Submitting test papers is the link with the largest number of users .
Pain points
More users enter the test paper and the loading time is too long , Slow system response ; Many people submit test questions and papers at the same time, and always modify the database , The database is under too much pressure .
The optimization idea is divided into three points
1. Procedural optimization
2. Database level optimization
3. Add server configuration
Enter the test paper
1. Entering the test paper can put the data into the cache , For example, use Reids.
2. Add indexes to data table fields .
3. Pre generated user test paper static page .
Submit test questions
1. Each time you submit a test question, you can put the data into the cache , such as Reids cache .
Submit test papers
1. When submitting the test paper, you can print the test question data and cached data into the log , Prevent data from being retrieved in case of error .
2. It is suggested that when the test paper is prompted at the end , Submit the answer of the test question again as a whole , Prevent the answers to the test questions from being lost . Compare with the data in the cache . Missing data , Fill in with the data submitted as a whole .
3. Finally, the test questions in the cache 、 And test paper data , Put it in the message queue , To execute asynchronously .
版权声明
本文为[Sound God]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231913518354.html
边栏推荐
- SSDB基础1
- SQL server requires to query the information of all employees with surname 'Wang'
- [record] typeerror: this getOptions is not a function
- Openlayers 5.0 loading ArcGIS Server slice service
- Wechat applet part of the mobile phone Preview PDF did not respond
- An algorithm problem was encountered during the interview_ Find the mirrored word pairs in the dictionary
- FTP、ssh远程访问及控制
- Gossip: on greed
- SSDB foundation 3
- Codeforces Round #784 (Div. 4)
猜你喜欢
Reflection on the performance of some OpenGL operations in the past
[record] typeerror: this getOptions is not a function
The fifth bullet of MySQL learning -- detailed explanation of transaction and its operation characteristics
redis优化系列(三)解决主从配置后的常见问题
【C语言进阶11——字符和字符串函数及其模拟实现(2))】
Oracle configuration st_ geometry
I just want to leave a note for myself
Sword finger offer II 116 Number of provinces - spatial complexity O (n), time complexity O (n)
mysql通过binlog恢复或回滚数据
開關電源設計分享及電源設計技巧圖解
随机推荐
UML类图几种关系的总结
arcMap 发布切片服务
[report] Microsoft: application of deep learning methods in speech enhancement
点云数据集常用处理
On the forced conversion of C language pointer
openlayers draw矩形
SQL Server database in clause and exists clause conversion
网络协议之:sctp流控制传输协议
[记录]TypeError: this.getOptions is not a function
Strange problems in FrameLayout view hierarchy
SSDB foundation 1
redis优化系列(三)解决主从配置后的常见问题
MySQL学习第五弹——事务及其操作特性详解
浅谈c语言指针的强制转换
MySQL Téléchargement et installation de la version Linux
JS controls the file type and size when uploading files
Sogou cell thesaurus analysis (only extract words and word frequency)
Solve the problem of invalid listview Click
All table queries and comment description queries of SQL Server
Problems caused by flutter initialroute and home