当前位置:网站首页>Query on the performance of multi table view in MySQL
Query on the performance of multi table view in MySQL
2022-06-23 07:45:00 【CSDN Q & A】
That's true , There is a project , The database uses mysql. Then there are many functions for users in the project , for instance , Users can create a lottery function , You can also create a scratch card function , wait , Each function uses a table in the database as a correspondence .
The question we are considering now is :
Now there are only two functions: lottery and scratch card , So when we want to check what functions a user has created , When was it created , We only need to query the user record table and lottery menu or the user record table and scratch card menu . But then we need to add functions, such as adding the turntable function , And more and more . There will probably be 50 More than one
What we need is to know what functions the user has created , When was this data created ( The time when the function was created is saved in the corresponding menu ). So I wondered if I could make a view , Put the creation time of the user record table and the corresponding menu into a view , In this way, you can directly modify the statement to make the view display the newly added functions . by the way , The view created is for query purposes only , Do not insert, update or delete data . But considering that so many tables are associated in the view , Is there a performance problem ?
边栏推荐
- Detailed explanation of redis persistence, master-slave and sentry architecture
- 链游飞船开发 农民世界链游开发 土地链游开发
- 279. perfect square
- NFS 特别注意权限的问题
- CIRIUM(睿思誉)逐渐成为航空公司二氧化碳排放报告的标准
- To conquer salt fields and vegetable fields with AI, scientific and technological innovation should also step on the "field"
- Pseudocode specification, pseudocode online editor,
- Basic experiment of data statistics and analysis - basic grammar and operation
- MySQL summary
- 启动appium
猜你喜欢

Deploy kubersphere in kubernetes

SimpleDateFormat 线程安全问题

【Veusz】导入CSV中的二维数据

Data types in tensorflow

CIRIUM(睿思誉)逐渐成为航空公司二氧化碳排放报告的标准

论文写作之WPS安装Mathtype插件编写数学公式

How to tag and label naming before the project release
![[深度学习][原创]如何不用yolov5权重或者模型进行目标检测和绘制map等参数图](/img/f3/ff14cb5439a24e26f977e5f0d15785.png)
[深度学习][原创]如何不用yolov5权重或者模型进行目标检测和绘制map等参数图

30 sets of report templates necessary for the workplace, meeting 95% of the report needs, and no code is required for one click application

Online JSON to CSharp (c) class tool
随机推荐
Ldconfig command
NFS special attention to permissions
快速排序 + 冒泡排序 + 插入排序 + 選擇排序
快速删除代码里面的node_modules
[Laoke] how should ordinary people learn technology?
[veusz] import 2D data in CSV
How MySQL converts a date to a number
Sstable details
Heuristic search strategy
传智教育 | 项目发布前如何打tag标签及标签命名规范
Unity picture loading and saving
1.概率论-组合分析
Can you think of a better way to solve the problem of string inversion?
unity转微信小程序小游戏
MySQL transaction isolation level
干货来了|《PaaS》合辑抢先看~
Minio single node deployment Minio distributed deployment fool deployment process (I)
跳跃表原理
csrf攻击在laravel中如何解决
Guava Cache 使用小结