avatar
disk access and DB2# Database - 数据库
M*y
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
avatar
f*h
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.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。