当前位置:网站首页>Tidb execution plan -- II
Tidb execution plan -- II
2022-06-13 06:49:00 【Lao Wang's notes】
- Convergence class operator
- Hash Aggregate
- Blocking execution , Only after the whole calculation is completed can the result be output to the upper operator
- There's no need to sort in advance
- Support parallel
- Large memory consumption
mysql> explain select /*+HASH_AGG()*/ count(1) from student; +---------------------------+-----------+-----------+----------------------------------+---------------------------------+ | id | estRows | task | access object | operator info | +---------------------------+-----------+-----------+----------------------------------+---------------------------------+ | HashAgg_10 | 1.00 | root | | funcs:count(Column#7)->Column#5 | | └─IndexReader_11 | 1.00 | root | | index:HashAgg_5 | | └─HashAgg_5 | 1.00 | cop[tikv] | | funcs:count(1)->Column#7 | | └─IndexFullScan_9 | 100185.00 | cop[tikv] | table:student, index:PRIMARY(id) | keep order:false | +---------------------------+-----------+-----------+----------------------------------+---------------------------------+ 4 rows in set (0.00 sec)
- Stream Aggregate
- Non blocking , A row of results can be calculated to return a pair of limit Friendly operation
- Memory usage is small
- Single thread execution
- You need to sort ahead
mysql> explain select /*+STREAM_AGG()*/ count(1) from student; +----------------------------+-----------+-----------+----------------------------------+---------------------------------+ | id | estRows | task | access object | operator info | +----------------------------+-----------+-----------+----------------------------------+---------------------------------+ | StreamAgg_15 | 1.00 | root | | funcs:count(Column#7)->Column#5 | | └─IndexReader_16 | 1.00 | root | | index:StreamAgg_8 | | └─StreamAgg_8 | 1.00 | cop[tikv] | | funcs:count(1)->Column#7 | | └─IndexFullScan_14 | 100185.00 | cop[tikv] | table:student, index:PRIMARY(id) | keep order:false | +----------------------------+-----------+-----------+----------------------------------+---------------------------------+
- Hash Aggregate
- Scan data operator
- Point Get/ Batch Point Get: Check , The fastest , Optimal operator , There is no need to execute the plan ;
- Table Reader
- Full table scan , No index ; TableFullScan
- Index Reader
- You don't have to go back to the table , Index reading
- Index Lookup Reader
- Go to the index , We need to go back to the table ;
- Index Merge Reader
- 4.0 After the introduction of , You can use multiple indexes in one table , Merge the results ;
- Table join operator
- Hash Join
- Put a table with a smaller result set into memory , do HASH, With HASH Tables are associated ;
- The two associated tables can only be equivalent queries
- Multithreading
- Merge Join
- Sort the table first , Then connect the tables
- If the amount of data is large , It can be put into memory in batches for orderly table connection
- Than Hash Join To save memory ;
- Single thread
- Index Join
- Table to table connection ;
- Parallel thread
- Each batch match ;
- Index Hash Join
- Convert connected objects from tables to indexes ;
- Hash Join
边栏推荐
- Jetpack - basic use of room
- 牙周炎问题调研(持续进行中)
- 16、 IO stream (II)
- 数据在内存中的存储(C语言)
- MySQL系列之分库分表学习笔记
- 105. 从前序与中序遍历序列构造二叉树
- Error in downloading opencv from pip
- [SketchUp 2021] CAD file import and modeling in the sketch master (establish elevation model in the sketch master by using CAD drawings), and the sketch master exports 2D, 3D and elevation effects of
- If the key in redis data is in Chinese
- Cocos creator obtains user authorization interface and encapsulates createuserinfobutton
猜你喜欢
Jetpack - basic use of room
Machine learning notes - supervised learning memo list
【马尔科夫链-蒙特卡罗】马尔科夫链-蒙特卡罗方法对先验分布进行抽样
Do you want to carry out rapid steel mesh design and ensure the quality of steel mesh? Look here
The innovative public platoon mode team invites users to split, beautiful every second, and links the 2+1 new business model
Network planning common interview knowledge (I)
JetPack - - - Navigation
Intelligent entertainment has developed steadily, and jinglianwen technology provides data collection and labeling services
不间断管理设计
The new business outlet of beautiful Tiantian second mode will be popular in the Internet e-commerce market
随机推荐
玄武云科技通过上市聆讯:业绩波动明显,陈永辉等三人为控股股东
New Taishan crowdfunding business diversion fission growth model in 2022
Time formatting tool ----moment JS (real time display of web page time)
数字时代进化论
[Tencent Alibaba's most comprehensive collection of test questions] (four sides: three rounds of technology +1 round of HR)
The new business outlet of beautiful Tiantian second mode will be popular in the Internet e-commerce market
How to use Wangyou DFM software for cold plate analysis
The innovative public platoon mode team invites users to split, beautiful every second, and links the 2+1 new business model
時間格式化工具----moment.js(網頁時間實時展示)
【騰訊阿裏最全面試題集錦】(四面:3輪技術+1輪HR)
我的理财产品显示清算中是什么意思?
[kernel] two methods of driver compilation: compiling into modules and compiling into the kernel (using miscellaneous device driver templates)
Unable to find method 'org gradle. api. artifacts. result. ComponentSelectionReason. getDesc
Jetpack - basic use of room
That is, after the negative impact of gcat advertising e-commerce, is there no stable advertising e-commerce platform?
Learning notes of MySQL series by database and table
Detailed Mr Atlas of hip joint (Reprinted)
Fe of mL: introduction to vintage curve /vintage analysis, calculation logic and detailed introduction to case application
Unable to locate program input point getrawinputdevicelist in dynamic link library user32 DLL processing
Kotlin data flow - flow