In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
I. explanation
1. IFS (index full scan) single-block read, IFFS (index fast full scan) multi-block read.
2. When a column in the table is fully scanned at the same time, the speed of multi-block reading is obviously faster and the performance is better than that of single-block reading.
3. Both FTS (full table scan) and IFFS (index fast full scan) are multi-block reads.
4. IFFS (index fast full scan) is multi-block read, which can be read in parallel and not sorted.
5. IFS (index full scan) is read in a single block and ordered.
Second, the testing process
SQL > alter system flush buffer_cache
System altered.
Elapsed: 00:00:00.17
SQL > alter system flush shared_pool
System altered.
Elapsed: 00:00:00.30
SQL > select / * + index (tt idx_object_id) * / count (object_id) from tt
COUNT (OBJECT_ID)
-
5524288
Elapsed: 00:00:05.72
SQL > alter system flush buffer_cache
System altered.
Elapsed: 00:00:00.17
SQL > alter system flush shared_pool
System altered.
Elapsed: 00:00:00.07
SQL > select count (object_id) from tt
COUNT (OBJECT_ID)
-
5524288
Elapsed: 00:00:01.35
SQL > explain plan for select / * + index (tt idx_object_id) * / count (object_id) from tt
Explained.
Elapsed: 00:00:00.07
SQL > select * from table (dbms_xplan.display ())
PLAN_TABLE_OUTPUT
-
Plan hash value: 3277332215
| | Id | Operation | Name | Rows | Bytes | Cost (% CPU) | Time |
| | 0 | SELECT STATEMENT | | 1 | 5 | 12269 (1) | 00:02:28 |
| | 1 | SORT AGGREGATE | | 1 | 5 |
| | 2 | INDEX FULL SCAN | IDX_OBJECT_ID | 2762K | 13m | 12269 (1) | 00:02:28 |
9 rows selected.
Elapsed: 00:00:00.33
SQL > explain plan for select count (object_id) from tt
Explained.
Elapsed: 00:00:00.01
SQL > select * from table (dbms_xplan.display ())
PLAN_TABLE_OUTPUT
-
Plan hash value: 1131838604
-
| | Id | Operation | Name | Rows | Bytes | Cost (% CPU) | Time |
-
| | 0 | SELECT STATEMENT | | 1 | 5 | 3335 (1) | 00:00:41 |
| | 1 | SORT AGGREGATE | | 1 | 5 |
| | 2 | INDEX FAST FULL SCAN | IDX_OBJECT_ID | 2762K | 13m | 3335 (1) | 00:00:41 |
-
9 rows selected.
Elapsed: 00:00:00.01
SQL >
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.