手机版
你好,游客 登录 注册
背景:
阅读新闻

Oracle PipeLined方式究竟能提升多少性能

[日期:2013-04-11] 来源:Linux社区  作者:liaojiabo [字体:大 中 小]

3 下面我们来看测试结果

3.1 采用非PIPELINED方式执行(嵌套表方式返回)

C:\Documents and Settings\Administrator>sqlplus tpcctest/******@102.com

SQL*Plus: Release 10.2.0.4.0 - Production on 星期四 4月 11 16:30:24 2013

Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.


连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options

SQL> set timing on
SQL> select count(*) from table(TEST_PIPELLINED.WITH_NOPIPELINED());

  COUNT(*)
----------
    500000

<span style="color: rgb(255, 0, 0);">已用时间:  00: 00: 29.73</span>
SQL> select count(*) from table(TEST_PIPELLINED.WITH_NOPIPELINED());

  COUNT(*)
----------
    500000

<span style="color: rgb(255, 0, 0);">已用时间:  00: 00: 29.75</span>
SQL> quit
从 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options 断开

3.2 采用PIPELINED方式执行

C:\Documents and Settings\Administrator>sqlplus tpcctest/******@102.com

SQL*Plus: Release 10.2.0.4.0 - Production on 星期四 4月 11 16:40:03 2013

Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.


连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options

SQL> set timing on
SQL> select count(*) from table(TEST_PIPELLINED.WITH_PIPELINED());

  COUNT(*)
----------
    500000

<span style="color: rgb(255, 0, 0);">已用时间:  00: 00: 01.37</span>
SQL> select count(*) from table(TEST_PIPELLINED.WITH_PIPELINED());

  COUNT(*)
----------
    500000

<span style="color: rgb(255, 0, 0);">已用时间:  00: 00: 00.25</span>
SQL> select count(*) from table(TEST_PIPELLINED.WITH_PIPELINED());

  COUNT(*)
----------
    500000

<span style="color: rgb(255, 0, 0);">已用时间:  00: 00: 00.23</span>
SQL> quit
从 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options 断开

更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12

linux
相关资讯       Oracle性能  Oracle PipeLined 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款