Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8802531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:06:34+00:00 2026-06-14T01:06:34+00:00

Query used: (had copied the cache cleanup code from somewhere online) CHECKPOINT; GO DBCC

  • 0

Query used:

(had copied the cache cleanup code from somewhere online)

CHECKPOINT; 
GO 
DBCC DROPCLEANBUFFERS; 
GO
DBCC DROPCLEANBUFFERS
GO

SET STATISTICS TIME ON;
SET STATISTICS IO ON;

select a.a,a.b from t1 a JOIN t1 b on a.i=b.i

t1 ‘s schema is

CREATE TABLE [dbo].[t1](
    [i] [int] NULL,
    [a] [varchar](1000) NULL,
    [b] [varchar](1000) NULL,
    [c] [varchar](1000) NULL
) ON [PRIMARY]

And t1 is populated with random data (I ranges from 0-11 and a,b,c are populated with NEWID() values)

It contains about 900 rows (934 to be exact)

The results of executing the query are:

SQL Server parse and compile time: CPU time = 0 ms, elapsed time =
0 ms.

SQL Server Execution Times: CPU time = 0 ms, elapsed time = 55
ms. SQL Server parse and compile time: CPU time = 0 ms, elapsed
time = 0 ms. DBCC execution completed. If DBCC printed error messages,
contact your system administrator.

SQL Server Execution Times: CPU time = 0 ms, elapsed time = 4 ms.
SQL Server parse and compile time: CPU time = 0 ms, elapsed time =
0 ms. DBCC execution completed. If DBCC printed error messages,
contact your system administrator.

SQL Server Execution Times: CPU time = 0 ms, elapsed time = 1 ms.
SQL Server parse and compile time: CPU time = 0 ms, elapsed time =
0 ms.

SQL Server Execution Times: CPU time = 0 ms, elapsed time = 0 ms.

SQL Server Execution Times: CPU time = 0 ms, elapsed time = 0 ms.

(115974 row(s) affected) Table ‘Worktable’. Scan count 0, logical
reads 0, physical reads 0, read-ahead reads 0, lob logical reads 0,
lob physical reads 0, lob read-ahead reads 0. Table ‘t1’. Scan count
2, logical reads 32, physical reads 0, read-ahead reads 20, lob
logical reads 0, lob physical reads 0, lob read-ahead reads 0.

SQL Server Execution Times: CPU time = 79 ms, elapsed time =
15858 ms.

As I understand it, a clean cache should result in a significant number of physical reads, shouldn’t it?

(SQL server 2012 running on a Win 8 guest VM running on Hyper V on a Win 8 host)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T01:06:35+00:00Added an answer on June 14, 2026 at 1:06 am

    The item you have highlighted is for a Worktable (e.g. spool) created in tempdb during the course of the query. Not a pre-existing table that needs to be read in from disc.

    The line for t1 should show some physical reads and or read-ahead reads.

    (Edit: Didn’t see that was included originally). The below shows 20 read-ahead reads from t1

    Table 't1'. Scan count 2, logical reads 32, physical reads 0, read-ahead reads 20
    

    This means all pages were brought into cache by the read ahead mechanism.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I used below code: var data = from query in loadedData.Descendants(chapter) select new CountryData
Hi I had used this following code $last_id=mysql_query(select * from complaint_list order by complaint_id
I have a fairly simple pagination query used to get rows from a table
Also what will be the scenarios where this query is used select * from
I have used this query before: SELECT * FROM stone_list WHERE type IN ('ALEXANDRITE','AMETHYST')
I have a piece of old code that used a query using WQL to
I had a query where an index was not used when I thought it
I have used this query on many occasions and never had an issue. I
What is the query used to view the topmost process which is having maximum
Following query is used for Getting Categories and one news for each category. How

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.