- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
ORACLE数据库数据操作优化(DataAccess)(讲).doc
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
您可能关注的文档
最近下载
- 学前幼儿园_主题一 社会领域教学活动一我们的新小组教学课件设计.ppt
- The well that changed the world课件新外研版必修三(精编).pptx
- 2021年中央民族工作会议大会讲话全文(42页).docx VIP
- 广东省中学生入团积极分子、发展对象培养考察表.pdf VIP
- 文档服务器sos-CliosoftSOS使用手册.pdf
- 病人针灸过程中断针的应急预案与流程.docx VIP
- T_HBSEA 17-2025 信息技术应用创新政务云平台技术与建设规范.pdf VIP
- Chapter-4-Data-analysis-statistics-and-probability-review数据分析、统计与概率.ppt VIP
- 第三章植物组织培养基本原理.ppt VIP
- 2025年3月22日山东事业单位统考《行测》真题(含答案).pdf VIP
文档评论(0)