disable or 擴充套件
SQL> select /*+ use_concat */ * from hao2 where object_id=1 or object_id=2 or object_id=3;
執行計劃
----------------------------------------------------------
Plan hash value: 2739802529
----------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
----------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 3 | 282 | 5 (0)| 00:00:01 |
| 1 | INLIST ITERATOR | | | | | |
| 2 | TABLE ACCESS BY INDEX ROWID| HAO2 | 3 | 282 | 5 (0)| 00:00:01 |
|* 3 | INDEX RANGE SCAN | HAO2IND | 3 | | 4 (0)| 00:00:01 |
----------------------------------------------------------------------------------------
Predicate Information (identified by operation id):
---------------------------------------------------
3 - access("OBJECT_ID"=1 OR "OBJECT_ID"=2 OR "OBJECT_ID"=3)
統計資訊
----------------------------------------------------------
0 recursive calls
0 db block gets
9 consistent gets
0 physical reads
0 redo size
1249 bytes sent via SQL*Net to client
338 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
2 rows processed
SQL> alter session set events '10157 trace name context forever';
會話已更改。
SQL> select /*+ use_concat */ * from hao2 where object_id=1 or object_id=2 or object_id=3;
執行計劃
----------------------------------------------------------
Plan hash value: 1202901203
----------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
----------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 3 | 282 | 6 (0)| 00:00:01 |
| 1 | CONCATENATION | | | | | |
| 2 | TABLE ACCESS BY INDEX ROWID| HAO2 | 1 | 94 | 2 (0)| 00:00:01 |
|* 3 | INDEX RANGE SCAN | HAO2IND | 1 | | 1 (0)| 00:00:01 |
| 4 | TABLE ACCESS BY INDEX ROWID| HAO2 | 1 | 94 | 2 (0)| 00:00:01 |
|* 5 | INDEX RANGE SCAN | HAO2IND | 1 | | 1 (0)| 00:00:01 |
| 6 | TABLE ACCESS BY INDEX ROWID| HAO2 | 1 | 94 | 2 (0)| 00:00:01 |
|* 7 | INDEX RANGE SCAN | HAO2IND | 1 | | 1 (0)| 00:00:01 |
----------------------------------------------------------------------------------------
Predicate Information (identified by operation id):
---------------------------------------------------
3 - access("OBJECT_ID"=1)
5 - access("OBJECT_ID"=3)
7 - access("OBJECT_ID"=2)
統計資訊
----------------------------------------------------------
0 recursive calls
0 db block gets
9 consistent gets
0 physical reads
0 redo size
1249 bytes sent via SQL*Net to client
338 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
2 rows processed
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22034023/viewspace-703664/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- kotlin 擴充套件(擴充套件函式和擴充套件屬性)Kotlin套件函式
- 【Kotlin】擴充套件屬性、擴充套件函式Kotlin套件函式
- 擴充套件工具套件
- Sanic 擴充套件套件
- Mybatis擴充套件MyBatis套件
- SpringMVC 擴充套件SpringMVC套件
- ORACLE 擴充套件Oracle套件
- 使用Kotlin擴充套件函式擴充套件Spring Data案例Kotlin套件函式Spring
- JMeter 擴充套件開發:擴充套件 TCP 取樣器JMeter套件TCP
- ?用Chrome擴充套件管理器, 管理你的擴充套件Chrome套件
- ASP.NET Core擴充套件庫之Http通用擴充套件ASP.NET套件HTTP
- iOS 通知擴充套件iOS套件
- swift擴充套件ExtensionsSwift套件
- 擴充套件BSGS/exBSGS套件
- Json擴充套件方法JSON套件
- 分類擴充套件套件
- 提高擴充套件性套件
- HttpContext擴充套件類HTTPContext套件
- DOM部分擴充套件套件
- LINQ擴充套件方法套件
- Flask 自建擴充套件Flask套件
- 新增php擴充套件PHP套件
- 擴充套件表示式套件
- 擴充套件包上傳套件
- Nmap 擴充套件(四)套件
- 可擴充套件性套件
- 19-擴充套件套件
- PHP擴充套件開發就是一個自己的PHP擴充套件PHP套件
- 乾貨丨如何水平擴充套件和垂直擴充套件DolphinDB叢集?套件
- 正則的擴充套件套件
- jQuery外掛擴充套件jQuery套件
- jQuery擴充套件外掛jQuery套件
- 線段樹擴充套件套件
- Dapper.Lite 擴充套件APP套件
- Ubunut擴充套件分割槽套件
- YAML 擴充套件安裝YAML套件
- Yac 擴充套件安裝套件
- Lambda擴充套件與用途套件
- Kotlin擴充套件函式Kotlin套件函式