当前位置:网站首页>考试系统进入试卷优化思路
考试系统进入试卷优化思路
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
边栏推荐
- WebView opens H5 video and displays gray background or black triangle button. Problem solved
- SSDB基础
- Transaction processing of SQL Server database
- The platinum library cannot search the debug process records of some projection devices
- The flyer realizes page Jump through routing routes
- openlayers 5.0 当地图容器大小改变时,重新加载地图
- Disable Ctrl + Alt + Del
- SSDB Foundation
- Matlab 2019 installation of deep learning toolbox model for googlenet network
- Modify the font size of hint in editext
猜你喜欢

开关电源设计分享及电源设计技巧图解

Openharmony open source developer growth plan, looking for new open source forces that change the world!

After opening the original normal project, the dependency package displays red and does not exist.

MySQL restores or rolls back data through binlog

Introduction to micro build low code zero Foundation (lesson 3)
![[today in history] April 23: the first video uploaded on YouTube; Netease cloud music officially launched; The inventor of digital audio player was born](/img/0a/ed4eab6589e1c072edc247463e889e.png)
[today in history] April 23: the first video uploaded on YouTube; Netease cloud music officially launched; The inventor of digital audio player was born

The fifth bullet of MySQL learning -- detailed explanation of transaction and its operation characteristics

【C语言进阶11——字符和字符串函数及其模拟实现(2))】

Audio signal processing and coding - 2.5.3 the discrete cosine transform

Simplified path (force buckle 71)
随机推荐
SSDB foundation 2
SSDB foundation 3
After opening the original normal project, the dependency package displays red and does not exist.
Circuit on-line simulation
Translation of audio signal processing and coding: Preface
[play with lighthouse] Tencent cloud lightweight server builds a full platform video analysis video download website
Parsing headless jsonarray arrays
Codeforces Round #784 (Div. 4)
How to uninstall easyton
微搭低代码零基础入门课(第三课)
[advanced level 11 of C language -- character and string functions and their simulation implementation (2)]
Getting started with vcpkg
2021-2022-2 ACM集训队每周程序设计竞赛(8)题解
Using bafayun to control the computer
@Analysis of conditional on Web Application
Openlayers draw rectangle
js 计算时间差
The platinum library cannot search the debug process records of some projection devices
Yyds dry goods inventory stringprep --- Internet string preparation
Simple use of navigation in jetpack