当前位置:网站首页>Case 2 of SQL performance degradation caused by modifying implicit parameters
Case 2 of SQL performance degradation caused by modifying implicit parameters
2022-06-22 22:38:00 【Tiger Liu】
The customer sent such an execution time 1.3 Hours of SQL Want to optimize :
SQL Code :
INSERT INTO HWDW.TW_CI_SIM_RES (
......
)
SELECT ......
FROM HWODS.TO_CI_I91822 S ----- The big table
,(
SELECT PHONE_NO,TD_PHONE_NO
FROM HWDW.TW_CI_PHONE_TD_INFO----- Watch
WHERE STATIS_DATE = :B1
)T
WHERE S.PHONE_NO = T.TD_PHONE_NO(+);
adopt SQL Monitor The displayed data found that the execution plan was abnormal : stay Estimate-rows When the valuation is normal ,hash join The left table is made of the big table of , In this case, the relevant parameters are changed .
Sure enough , The inspection found that ,_right_outer_hash_enable The implicit parameter has been changed to false . If you change the parameter back to the default TRUE, expect SQL Performance will improve 10 About times .
explain :
If set _right_outer_hash_enable=false , Then the external association can only be done by the main table hash join Left table of , Regardless of the size of the table , Large in main table , When the association table is small , The performance will be poor .
This parameter may have been used in a previous version bug, When the customer upgrades, the original set value is still retained , It is recommended to confirm each parameter one by one during upgrade , Maximize database performance .
边栏推荐
- Do not know how to choose the development of digital currency wallet?
- [ROS introduction] cmakelist Txt and packages XML interpretation
- 二级造价工程师考前必备15个知识点来了!祝你旗开得胜!
- Makefile:1860: recipe for target ‘cmake_ check_ build_ system‘ failed make: *** [cmake_check_build_syst
- 2022年朝阳区科技创新课之“产品创新与成果转化”训练营活动圆满结束
- 【ROS】ROSmsg cakin_make编译错误
- Fundamentals of shell programming (Part 7: branch statement -if)
- Vs code one key sorting shortcut
- 组合总数[标准回溯 + 回溯技巧--降低栈深度]
- Solution to cache inconsistency
猜你喜欢
[database] SQL Server quickly creates tables to simulate departments, courses, teachers, students and scores

Las point cloud create mesh
![Next permutation [give play to subjective initiative to discover laws]](/img/bb/262e1a21e4babb8d221d737ced3bcc.png)
Next permutation [give play to subjective initiative to discover laws]

7-9 super Mary

自助图书馆系统-Tkinter界面和openpyxl表格综合设计案例

Implementation of breadth traversal adjacency matrix of 6-6 graph

Crud+ form verification for spa project development

Dynamic tree + data table + pagination of spa project development

Cvpr2022 𞓜 feature decoupling learning and dynamic fusion for re captured images

自监督表征预训练之掩码图像建模:CAE 及其与 MAE、BEiT 的联系
随机推荐
[recommended by Zhihu knowledge master] castle in UAV - focusing on the application of UAV in different technical fields
SPA项目开发之动态树+数据表格+分页
The method of making videos of knowledge payment system support m3u8 format playback
Makefile:1860: recipe for target ‘cmake_ check_ build_ system‘ failed make: *** [cmake_check_build_syst
Rendu stéréo
Registration of spa project development
A case of 94 SQL optimization (the writing method used is often rejected)
v-if和v-for哪个优先级更高?
立体渲染
A hundred lines of code to realize reliable delay queue based on redis
June 25 PMI certification examination site epidemic prevention requirements and examination room arrangement
How to carry out encryption protection for equipment under extortion virus rampant
[mavros] mavros startup Guide
liunx 安装mysql
Mysql database DML operation exercise
Implementation of breadth traversal adjacency matrix of 6-6 graph
MySQL constraints
自监督表征预训练之掩码图像建模:CAE 及其与 MAE、BEiT 的联系
[GWCTF 2019]mypassword XSS
Several soapdatamodules on Delphi soap WebService server side