January 17, 2005 at 8:39 am
Hai,
I was trying to analyse the IO read of a query.
i have executed the following query
Set statistics io on
select * from corpbonds
set statistics io off
and i got the message :
Table 'CorpBonds'. Scan count 1, logical reads 21, physical reads 0, read-ahead reads 0.
means that no physical read and the data is taken from the cache.
After this i cleared the buffer cache
dbcc dropcleanbuffers
executed the same query and i got the same message like:
Table 'CorpBonds'. Scan count 1, logical reads 21, physical reads 0, read-ahead reads 0.
What is means, according to my knowledge after clearing the cache the query should take the data from the disk and hence the Phycal read should be greater that zero right ?
Can anybody explain this?
subban
January 20, 2005 at 8:00 am
This was removed by the editor as SPAM
January 27, 2005 at 8:33 am
DBCC dropcleanbuffers command only removes clean buffers, not dirty buffers.
Before running the DBCC DROPCLEANBUFFERS command, you may first want to run the CHECKPOINT. Running CHECKPOINT will write all dirty buffers to disk.
Now you should see the difference.....
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply