About me:Oracle ACE pro,optimistic,passionate and harmonious. Focus on ORACLE,MySQL and other database programming,peformance tuning,db design, j2ee,Linux/AIX,Architecture tech,etc
全部博文(191)
发布时间:2024-04-23 16:03:51
背景:一般情况下,如果子查询里含有OR或外面的WHERE条件含有OR,如果走不了disjunctive subquery unnest,则会走FILTER,效率较低,
对符合条件的disjunctive subquery,ORACLE CBO能够进行unnest,由隐含参数_optimizer_unnest_disjunctive_subq控制。
本次讨论的就是将OR子查询改写为JOIN,构造等值条件,让原来走FILTER的执行计划走HASH JOIN,大幅度提高效率。
......【阅读全文】
发布时间:2024-04-22 17:25:21
子查询转换的subquery unnest是数据库一种重要的查询转换技术,ORACLE作为有着最强大优化器(CBO)的数据库,同样在子查询转换方面有很多技术,当然限制也
较多,本文详细讲解子查询里有OR的查询转换技术,利用ORACLE CBO自身的两大查询转换技术以及手动改写方法,使用三大方法,助力OR子查询性能起飞。......【阅读全文】
发布时间:2024-04-08 22:50:44
子查询转换的subquery unnest是数据库一种重要的查询转换技术,ORACLE作为有着最强大优化器(CBO)的数据库,同样在子查询转换方面有很多技术,当然限制也
较多,本文详细讲解子查询里有OR的查询转换技术,利用ORACLE CBO自身的两大查询转换技术以及手动改写方法,使用三大方法,助力OR子查询性能起飞。......【阅读全文】
发布时间:2026-03-30 17:44:51
ORACLE和MySQL的hash join,如果hash table返回0行,则probe table不需要执行,执行次数是0,而PG的还会执行,hash table a返回0行,但是probe table b还要执行,只不过最多只扫描满足条件的一行去探测,发现hash table没有数据,后面的不再探测
......【阅读全文】
发布时间:2026-03-30 14:27:55
oracle的外连接where内表过滤条件是函数,包括自定义函数,没有其他额外非函数的过滤条件,则不能转为inner join,只能走外连接,然后外层FILTER过滤where条件,一般来说,效率比inner join低,增加 内表条件 is not null 则可以转为inner join,数学运算可以转为inner join......【阅读全文】
吻的感觉适2025-07-18 23:11
https://txc.qq.com/products/762795/blog/2019636
https://txc.qq.com/products/762801/blog/2019637
https://txc.qq.com/products/762763/blog/2019638
https://txc.qq.com/products/762772/blog/2019639
https://txc.qq.com/products/762790/blog/2019641
https://txc.qq.com/products/762758/blog/2019640
https://txc.qq.com/products/762786/blog/2019642
https://txc.qq.com/products/762782/blog/2019643
https://txc.qq.com/products/762757/blog/2019644
https://txc.qq.com/products/762805/blog/2019645
https://txc.qq.com/products/762785/blog/2019647
https://txc.qq.com/products/762815/blog/2019646
https://txc.qq.com/products/762787/blog/2019648
https://txc.qq.com/products/762799/blog/2019649
https://txc.qq.com/products/762775/blog/2019650
https://txc.qq.com/products/762759/blog/2019651
https://txc.qq.com/products/762770/blog/2019652
https://txc.qq.com/products/762855/blog/2019654