In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Matters needing attention in creating an index
1. Estimate index size
2. View the available space of the index tablespace
3. View temporary tablespace size
4. Creation of business leisure period
5. Online, parallel and nologging modes can be considered.
II. Predictive indexing method
The steps are as follows:
SQL > explain plan for create index idx_object_id on tt (object_id)
Explained.
SQL > set lines 200 pages 1000
SQL > select * from table (dbms_xplan.display ())
PLAN_TABLE_OUTPUT
-
Plan hash value: 3757763116
-
| | Id | Operation | Name | Rows | Bytes | Cost (% CPU) | Time |
-
| | 0 | CREATE INDEX STATEMENT | | 2762K | 13m | 22958 (1) | 00:04:36 |
| | 1 | INDEX BUILD NON UNIQUE | IDX_OBJECT_ID |
| | 2 | SORT CREATE INDEX | | 2762k | 13m | | |
| | 3 | TABLE ACCESS FULL | TT | 2762K | 13m | 21560 (1) | 00:04:19 |
-
PLAN_TABLE_OUTPUT
-
Note
-
-estimated index size: 67m bytes
14 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.