由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - disk access and DB2
相关主题
一个有关查询的语句[转载] 问个SQL问题
Is Oracle ODBC support batch SQL(PL/SQL procedure)?请教set和select 的区别
这句SQL怎么写?Database encryption 一问
ACCESS问题, 请教!Question about the err when export table
二个简单Access问题one question on SQL
SQL question...Help: "Operation Must Be Updatable Query"
SQL question: update a field怎样快速得到两个表的交集
请教一个oracle下的view的问题count distinct在Access不能用?
相关话题的讨论汇总
话题: db2话题: disk话题: access话题: query话题: cache
进入Database版参与讨论
1 (共1页)
M*******y
发帖数: 14
1
Hi there,
I am performing a very simple experiment with DB2.
The query is: select count(*) from table1
I am interested in the disk I/O activities.
Is there any way to ensure disk access? I.E. to clear
the database's cache. The 2nd (and later)run is lightening fast, presumably no
disk access.
I've tried
1. db2stop, clear the OS cache, db2start
2. select * from some large junk tables and then repeat 1.
The query still runs very fast.
Thank you in advance.
cha
f*******h
发帖数: 1269
2
DB2 keeps statistical information of tables, such as the total count of
tuples. Thus your count query is always superfast. You have to try something
else.

no

【在 M*******y 的大作中提到】
: Hi there,
: I am performing a very simple experiment with DB2.
: The query is: select count(*) from table1
: I am interested in the disk I/O activities.
: Is there any way to ensure disk access? I.E. to clear
: the database's cache. The 2nd (and later)run is lightening fast, presumably no
: disk access.
: I've tried
: 1. db2stop, clear the OS cache, db2start
: 2. select * from some large junk tables and then repeat 1.

1 (共1页)
进入Database版参与讨论
相关主题
count distinct在Access不能用?二个简单Access问题
请教关于下面这个sql code地解释SQL question...
请教一个SQL query该怎么写SQL question: update a field
query estimation shows cost 900%?请教一个oracle下的view的问题
一个有关查询的语句[转载] 问个SQL问题
Is Oracle ODBC support batch SQL(PL/SQL procedure)?请教set和select 的区别
这句SQL怎么写?Database encryption 一问
ACCESS问题, 请教!Question about the err when export table
相关话题的讨论汇总
话题: db2话题: disk话题: access话题: query话题: cache