当前位置:网站首页>考试系统进入试卷优化思路
考试系统进入试卷优化思路
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
边栏推荐
- After opening the original normal project, the dependency package displays red and does not exist.
- [advanced level 11 of C language -- character and string functions and their simulation implementation (2)]
- SSDB Foundation
- 2022.04.23(LC_714_买卖股票的最佳时机含手续费)
- SQL of contention for system time plus time in ocrale database
- Switching power supply design sharing and power supply design skills diagram
- c#:泛型反射
- MySQL学习第五弹——事务及其操作特性详解
- arcMap 发布切片服务
- Esp01s with Arduino development environment
猜你喜欢
2022.04.23(LC_763_划分字母区间)
[record] typeerror: this getOptions is not a function
MySQL Téléchargement et installation de la version Linux
C: generic reflection
redis优化系列(三)解决主从配置后的常见问题
FTP, SSH Remote Access and control
After opening the original normal project, the dependency package displays red and does not exist.
Android Development: the client obtains the latest value in the database in real time and displays it on the interface
Some records used by VS2010
The fifth bullet of MySQL learning -- detailed explanation of transaction and its operation characteristics
随机推荐
Installation, use and problem summary of binlog2sql tool
[report] Microsoft: application of deep learning methods in speech enhancement
简化路径(力扣71)
SSDB foundation 2
12 examples to consolidate promise Foundation
openlayers draw矩形
Recyclerview control list item layout match_ Fundamental principle of parent attribute invalidation
Regular expressions for judging positive integers
优先使用组合而不使用继承
Getting started with vcpkg
mysql_linux版本的下載及安裝詳解
Audio signal processing and coding - 2.5.3 the discrete cosine transform
The type initializer for ‘Gdip‘ threw an exception
Openlayers draw rectangle
SQL of contention for system time plus time in ocrale database
Screen right-click menu in souI
Tencent cloud GPU best practices - remote development training using jupyter pycharm
Minesweeping II of souI instance
Circuit on-line simulation
机器学习目录