oracle hints ? use_hash ? ordered ?
關鍵字: oracle hints use_hash ordered
今天最佳化一個sql語句,想使用hash join看看效果,無論如何使用提示,都無法改變執行計劃。google,首先發現要可以使用LEADING,但是在8i下無效:
發現LEADING的意思是:
LEADING hint causes Oracle to use the specified table as the first table in the join order.An ORDERED hint will override this hint.
改用ordered後,在檢查執行計劃發現可以使用hash join。
ordered:Causes the SQL to be driven by the tables in the order left to right.
我將use_hash括號裡面的表對調,並不能改變執行計劃。
我很少使用hints,為什麼會出現這個問題,自己不知道?
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-83017/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle leading vs. ordered hintsOracle
- Oracle HintsOracle
- Oracle Hints詳解Oracle
- oracle hints的使用Oracle
- Oracle Hints的用法Oracle
- oracle hints index格式OracleIndex
- Oracle使用提示(Hints)Oracle
- oracle hints用法總結Oracle
- Oracle AWR報告分析之–SQL ordered byOracleSQL
- Oracle Hints語句的用法Oracle
- oracle hints的那點事Oracle
- How to use hints in Oracle sql for performanceOracleSQLORM
- oracle效能優化之--hintsOracle優化
- oracle sql tunning all hintsOracleSQL
- Oracle透過AWR的SQL ordered by Gets和SQL ordered by Reads診斷問題OracleSQL
- oracle 體系 & hints的用法總結(轉)Oracle
- WITH AS and materialize hints
- Oracle優化案例-復現SQL ordered by Parse Calls(三十二)Oracle優化SQL
- 【譯】Resource Hints
- ordered_commit流程梳理MIT
- Using hints for PostgresqlSQL
- MySQL index hints 使用MySqlIndex
- LightDB 22.4 新特性之支援Oracle cardinality和ordered_predicates hintOracle
- HTTP Client Hints 介紹HTTPclient
- Common LISP Hints 中文Lisp
- Hints : DRIVING_SITE
- hints提示總結 zt
- Bad SQL 優化加提示 /*+ordered */SQL優化
- 使用USE_HASH Hint調優一個SQL語句SQL
- Pycharm,Python 3 與 Type HintsPyCharmPython
- Python -型別提示 Type HintsPython型別
- UVa340 - Master-Mind HintsAST
- SQL生成AWR中的SQL ordered by Elapsed TimeSQL
- 【最佳化】hints之/*+append*/作業APP
- 轉載--常見hints的基礎用法
- Python Type Hints 從入門到實踐Python
- 前端效能優化 - Resource Hints 資源預載入前端優化
- 加快insert into select速度with hints and nologging