提高oracle速度三个注意事项(Three considerations for increasing Oracle speed).doc

提高oracle速度三个注意事项(Three considerations for increasing Oracle speed).doc

  1. 1、本文档共6页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 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,

您可能关注的文档

文档评论(0)

f8r9t5c + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8000054077000003

1亿VIP精品文档

相关文档