当前位置:网站首页>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 ?
边栏推荐
- Minio single node deployment Minio distributed deployment fool deployment process (I)
- 【星球精选】如何高效构建 Roam 与 theBrain 间细粒度双向链接?
- 一篇文章学会er图绘制
- MIT CMS.300 Session 12 – IDENTITY CONSTRUCTION 虚拟世界中身份认同的建立 part 2
- How MySQL converts a date to a number
- HCIP之路第八次实验
- vs在连接SQL时出现的问题myconn.OPen();无法运行
- [pyqt5 series] modify the counter to realize control
- NFS special attention to permissions
- Focusing on the industry, enabling customers | release of solutions for the five industries of the cloud container cloud product family
猜你喜欢

《一周的朋友》

Design of temperature detection and alarm system based on 51 single chip microcomputer

HCIP之路MPLS

The road to hcip MPLS
![[Planet selection] how to efficiently build fine-grained two-way links between roam and thebrain?](/img/ee/ce9f55694b28c391eb07cb11298caf.jpg)
[Planet selection] how to efficiently build fine-grained two-way links between roam and thebrain?

跳跃表原理

测试apk-异常管控NetTraffic攻击者开发

JS to determine the added and decreased elements of two arrays

某年某月某公司的面试题(1)

传智教育 | 多人协作开发出现代码冲突,如何合并代码?
随机推荐
Several characteristics of MySQL database
What is the experience of being a data product manager in the financial industry
Live broadcast review | how can the container transformation of traditional applications be fast and stable?
MySQL (IV) - MySQL storage engine
利用for循环输出一个字母三角形
小爱音箱连接网络异常解决办法
Unity picture loading and saving
MySQL transaction isolation level
The Sandbox 与《足球小将》达成合作,将流行的足球漫画及动画带入元宇宙
Product axure9 (English version), prototype design and production pull-down secondary menu
js中的同步和异步
一篇文章学会er图绘制
Heterogeneous transaction scenario interaction process and consistency assurance
[深度学习][原创]如何不用yolov5权重或者模型进行目标检测和绘制map等参数图
NFS special attention to permissions
启动appium
Deploy kubersphere in kubernetes
在线JSON转CSharp(C#)Class工具
[2022 graduation season] from graduation to transition to the workplace
Online text filter less than specified length tool