- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
ORACLE数据库数据操作优化Data Access讲
Data Access Methods
Data access methods that can enhance performance
Situations to avoid
How to use hints to force various approaches
Using Indexes
When to Create Indexes
Improve the performance of queries that select a small percentage of rows from a table(less than 2% or 4% of the tables rows)
Value may be higher: All data can be retrieved from an index;The indexed columns and expressions can be used for joining to other tables.
Tuning the Logical Structure
CBO avoids the use of nonselective indexes within query execution(unused: see EXPLAIN PLAN)
SQL engine must continue to maintain all indexes defined against a table regardless of whether they are used
Index maintenance can present a significant CPU and I/O resource demand
Open question: There is table with too many rows and there are many operations (including select, insert, update and delete) on it, what’s the index policies?
(first: reconstruct table and index; second: dynamic index policy)
Choosing Columns and Expressions to Index
keys that are frequently used in WHERE clauses.
keys that are frequently used to join tables in SQL statements.
keys that have high selectivity (using the ANALYZE statement).
Do not use standard B*-tree indexes on keys or expressions with few distinct values.
Do not index columns that are frequently modified.
Do not index keys that appear only in WHERE clauses with functions or operators (other than MIN or MAX).
Consider indexing foreign keys of referential integrity constraints in cases in which a large number of concurrent INSERT, UPDATE, and DELETE statements access the parent and child tables.
Consider whether the performance gain for queries is worth the performance loss for INSERTs, UPDATEs, and DELETEs and the use of the space required to store the index.
Choosing Composite Indexes
Provide additional advantages over single-column indexes:
Improved selectivity Sometimes two or more columns or expressions can be combined to form a composite index with more accurate selectivit
您可能关注的文档
- CPP薄膜的技术进展及市场分析PP论坛包装印刷.doc
- Book U3重点词汇讲解.doc
- DJCM电气火灾监控系统使用说明书.doc
- c语言第次上机作业[].doc
- DOP初步设计说明书.docx
- DJ架铺机说明书.doc
- EA使用说明书中实.doc
- Excell教程数据分析实例.docx
- DSJ使用维护说明书.doc
- eyclges注册会计师审计风险成因及控制学年论文.doc
- 主题课程整理大班上.doc
- 2026人教版小学语文三年级上册期末综合试卷3套(打印版含答案解析).docx
- 2026人教版小学语文四年级下册期末综合试卷3套(打印版含答案解析).docx
- 2026人教版小学二年级上册数学期末综合试卷精选3套(含答案解析).docx
- 2026人教版小学语文四年级上册期末综合试卷3套(含答案解析).docx
- 2026人教版小学二年级下册数学期末综合试卷3套(打印版含答案解析).docx
- 2026年地理信息行业年终总结汇报PPT.pptx
- 板块四第二十一单元封建时代的欧洲和亚洲 中考历史一轮复习.pptx
- 中考历史一轮复习:板块四第二十单元古代亚、非、欧文明+课件.pptx
- 第二次工业革命和近代科学文化中考历史一轮复习.pptx
原创力文档


文档评论(0)