- 1、本文档共6页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
提高oracle速度三个注意事项(Three considerations for increasing Oracle speed)
提高oracle速度三个注意事项(Three considerations for increasing Oracle speed)
Three considerations for increasing ORACLE speed
Heilongjiang Hu Zhong
1995-04-28
The order of tables in a 1.FROM statement
ORACLEs FROM statement handles the order of the table differently than we usually think, and it handles multiple tables after the FROM is processed in the right and left order.
The 2.WHERE statement in order
The WHERE statement is the following field after the WHERE is processed from left to right. According to this rule, we can put the most number of records that can be excluded from the left.
As we know these two points, we can choose the proper order and put the tables and conditions that may exclude more records on the rightmost and leftmost sides of FROM and WHERE to reduce the number of records as many points as possible. The essence is to generate as much as possible the minimum number of intermediate tables to satisfy the minimum number of conditional records, so as to reduce the disk I/O.
The conflict between brevity and speed in 3. sentences
Ordinary programmers are willing to write very simple programs to implement very complex functions, and in SQL statements this is often more harmful than it does. Because the SQL statement has a large number of set operations, step by step solution will greatly improve the speed of calculation because it greatly reduces the disk I/O operation. We should pay great attention to this point in practical application.
Example:
In conjunction with the foregoing three points, let us look at the following example:
INSERT INTO crkbb
SELECT A., A. month, B. material code,
Sum (NVL (A. amount of revenue, 0)), sum (NVL (A. number, 0)),
Sum (NVL (A. plan amount, 0)), sum (NVL (A. amount issued, 0))
FROM, Crk, a, wzdmk, B
Where B. material code =substr (A. material code, 1,2*b. level) and
=08=1994 and A. month a.
The designer is intended by this statement to calculate subtotals, 94 years 08 months, the total categories of all kinds of materials,
您可能关注的文档
- 护士长质量管理要点(Key points of quality management for head nurses).doc
- 护士面试常见问题(Frequent interview questions for nurses).doc
- 护士面试自我介绍(Nurse interview self introduction).doc
- 护士面试问题(Interview questions for nurses).doc
- 护士题3(Nurse questions 3).doc
- 护师资格考试(三)(The nurse practitioner qualification exam (three)).doc
- 护栏介绍(Guardrail introduction).doc
- 护照延期、变更、换发、加注(Passport extension, change, renewal, filling).doc
- 护栏网信息大全1(Guardrail network information 1).doc
- 抗菌药之间联合用药可能产生的结果(The possible outcome of the combined use of antimicrobials).doc
- 2023年江苏省镇江市润州区中考生物二模试卷+答案解析.pdf
- 2023年江苏省徐州市邳州市运河中学中考生物二模试卷+答案解析.pdf
- 2023年江苏省苏州市吴中区中考冲刺数学模拟预测卷+答案解析.pdf
- 2023年江苏省南通市崇川区田家炳中学中考数学四模试卷+答案解析.pdf
- 2023年江西省吉安市中考物理模拟试卷(一)+答案解析.pdf
- 2023年江苏省泰州市海陵区九年级(下)中考三模数学试卷+答案解析.pdf
- 2023年江苏省苏州市高新二中中考数学二模试卷+答案解析.pdf
- 2023年江苏省南通市九年级数学中考复习模拟卷+答案解析.pdf
- 2023年江苏省南通市海安市九年级数学模拟卷+答案解析.pdf
- 2023年江苏省泰州市靖江外国语学校中考数学一调试卷+答案解析.pdf
最近下载
- 二年级家长会班主任发言稿 VIP
- 2023-2024学年上海市位育中学八年级上学期期中考试英语试卷含详解.docx VIP
- 【自做】白雪公主PPT正常版.ppt
- 名著阅读《群英会蒋干中计》课件精品课件(选自罗贯中《三国演义》;34页).pptx VIP
- 2023-2024学年北京某中学八年级上学期期中考试英语试卷(含详解).pdf VIP
- 手术患者意外伤害预防.pptx
- 2024年初中信息技术学业水平合格性考试题库含答案.pdf
- 2024-2025学年小学科学一年级上册(2024)教科版(2024)教学设计合集.docx
- 2024全国中考语文试题分类汇编:记叙文阅读.pdf VIP
- 英语国家概况100问及答案.doc
文档评论(0)