Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flushing the data cache

Status
Not open for further replies.

Souvik

Technical User
Apr 2, 2003
11
IN
Hi,
Regarding the dbcc dropcleanbuffers method, I see that inspite of running it, my physical reads are 0 & all the data is still read logically. I wanted to know if I can clean the all the pages & read from the db file on the disk & then wanted to measure the statistics for that.

Thanks again,
 
Issue a checkpoint command before executing the DBCC commands. This will cause unwritten buffers to be written to disk and then the DBCC can clear them.

When you run the query and analyze the result, make sure you also consider the read-ahead reads as well as the physical reads. The number of logical reads will not change but the number of physical reads and read-ahead reads will change when the cache is cleared. Read-ahead reads are "Number of pages placed into the cache for the query" and will provide a more accurate picture of the I/O required to run the query.

If you want to get the best answer for your question read faq183-874 and faq183-3179.
Terry L. Broadbent - DBA
SQL Server Page:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top