sqlplus中arrayseize参数以及consistent gets

上一篇 / 下一篇  2007-02-14 00:00:00 / 个人分类:oracle

今天测试一下sqlplus中arrayseize参数以及consistent gets。

1。建立测试例子:
create table t as
select * from all_objects ;

2. 设置不同的arraysize大小N,从2,5,10,20,50,100,200,400,500,1000,2000,5000.
测试需要多少consistent gets。T表大小6M。

set autotrace traceonly
set arraysize &N
执行select * from t ;
结果如下:

arraysize consistent gets
2 23211
5 9669
10 5166
20 2917
50 1564
100 1115
200 889
400 775
500 753
1000 707
2000 684
5000 671

从结果看设置arraisize在100-500之间consistent gets基本变化不大。



TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

日历

« 2008-01-27  
  12345
6789101112
13141516171819
20212223242526
2728293031  

我的存档

数据统计

  • 访问量: 34
  • 日志数: 643
  • 建立时间: 2008-01-03
  • 更新时间: 2008-01-03

RSS订阅

Open Toolbar