sqlplus中arrayseize参数以及consistent gets

简介: 今天测试一下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。

今天测试一下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基本变化不大。


目录
相关文章
|
12月前
|
SQL 缓存 Oracle
Oracle-绑定变量binding variable解读
Oracle-绑定变量binding variable解读
277 0
|
SQL Oracle 关系型数据库
|
SQL Oracle 关系型数据库