当前位置:网站首页>考试系统进入试卷优化思路
考试系统进入试卷优化思路
2022-04-23 19:14:00 【音神】
在日常中,会有大量的用户在线上进行考试,进入试卷、答题、提交试卷都是使用人数最多的环节。
痛点
用户多进入试卷加载时间过长,系统响应慢;很多人同时提交试题和提交试卷总修改数据库,数据库承受压力过大。
优化思路分为三点
1.程序层面的优化
2.数据库层面的优化
3.增加服务器的配置
进入试卷
1.进入试卷可以将数据放入缓存,比如使用Reids。
2.对数据表字段添加索引。
3.预生成用户试卷静态页面。
提交试题
1.每次提交试题可以将数据放入缓存,比如Reids缓存。
提交试卷
1.提交试卷时可以将试题的数据和缓存的数据打印到日志中,防止出错时数据无法找回。
2.建议在最后提示试卷时,整体再提交一次试题的答案,防止试题答案丢失。和缓存中的数据进行比对。缺少的数据,使用整体提交的数据进行填充。
3.最后将缓存中的试题、和试卷数据,放入消息队列,进行异步执行。
版权声明
本文为[音神]所创,转载请带上原文链接,感谢
https://blog.csdn.net/gc666888/article/details/124364481
边栏推荐
- How about CICC wealth? Is it safe to open an account up there
- Common SQL commands
- 2022.04.23(LC_714_买卖股票的最佳时机含手续费)
- 优先使用组合而不使用继承
- Partage de la conception de l'alimentation électrique de commutation et illustration des compétences en conception de l'alimentation électrique
- SQL常用的命令
- : app: transformclasseswithrobustfordevrease meituan hot repair compilation error record
- Codeforces Round #784 (Div. 4)
- Openlayers 5.0 discrete aggregation points
- Codeforces Round #784 (Div. 4)
猜你喜欢
12 examples to consolidate promise Foundation
Oracle configuration st_ geometry
The difference between ordinary inner class and static inner class
FTP、ssh远程访问及控制
Openharmony open source developer growth plan, looking for new open source forces that change the world!
[report] Microsoft: application of deep learning methods in speech enhancement
[record] typeerror: this getOptions is not a function
MySQL学习第五弹——事务及其操作特性详解
ArcMap connecting ArcGIS Server
Use of fluent custom fonts and pictures
随机推荐
From technical system to business insight, the closing chapter of the practice of small and medium-sized R & D team structure
Zlib realizes streaming decompression
Openlayers 5.0 thermal diagram
ArcMap publishing slicing service
The type initializer for ‘Gdip‘ threw an exception
SQL server requires to query the information of all employees with surname 'Wang'
@Analysis of conditional on Web Application
SSDB基础2
One stop service platform for high-level talents and development of comprehensive service platform system for talents
Using bafayun to control the computer
该买什么设备,Keysight 给你挑好了
Disable Ctrl + Alt + Del
Switching power supply design sharing and power supply design skills diagram
在渤海期货办理开户安全吗。
Openlayers 5.0 two centering methods
【玩转Lighthouse】腾讯云轻量服务器搭建全平台视频解析视频下载网站
JS controls the file type and size when uploading files
腾讯云GPU最佳实践-使用jupyter pycharm远程开发训练
C1000k TCP connection upper limit test
2022.04.23 (lc_763_divided into letter interval)