Re: Why running the same query after the first time is faster ?
From: Louis Davidson (dr_dontspamme_sql_at_hotmail.com)
Date: 12/10/04
- Next message: Steve Kass: "Re: CHAR(163) and CHARINDEX"
- Previous message: Louis Davidson: "Re: Random number"
- In reply to: Michael C: "Re: Why running the same query after the first time is faster ?"
- Next in thread: Paul fpvt2: "Re: Why running the same query after the first time is faster ?"
- Reply: Paul fpvt2: "Re: Why running the same query after the first time is faster ?"
- Reply: Paul fpvt2: "Re: Why running the same query after the first time is faster ?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 9 Dec 2004 23:47:45 -0500
Maybe, but I doubt he has enough cache on his disk if it is a large data
set. The other problem might be the query plan. It might take some time to
calculate that too:
DBCC FREEPROCCACHE
You could clear the disk cache by doing a different query. There are quite
a few cache locations to consider :)
-- ---------------------------------------------------------------------------- Louis Davidson - drsql@hotmail.com SQL Server MVP Compass Technology Management - www.compass.net Pro SQL Server 2000 Database Design - http://www.apress.com/book/bookDisplay.html?bID=266 Note: Please reply to the newsgroups only unless you are interested in consulting services. All other replies may be ignored :) "Michael C" <mculley@NOSPAMoptushome.com.au> wrote in message news:O2m8kUm3EHA.1404@TK2MSFTNGP11.phx.gbl... > "Louis Davidson" <dr_dontspamme_sql@hotmail.com> wrote in message > news:uYzmb5l3EHA.3380@TK2MSFTNGP09.phx.gbl... >> Most likely it is cache, as Michael said. If you want to prove it, run: >> >> DBCC DROPCLEANBUFFERS >> >> to clear the cache and try it again. > > Maybe disk caching would cause it to run faster anyway? > > Michael >
- Next message: Steve Kass: "Re: CHAR(163) and CHARINDEX"
- Previous message: Louis Davidson: "Re: Random number"
- In reply to: Michael C: "Re: Why running the same query after the first time is faster ?"
- Next in thread: Paul fpvt2: "Re: Why running the same query after the first time is faster ?"
- Reply: Paul fpvt2: "Re: Why running the same query after the first time is faster ?"
- Reply: Paul fpvt2: "Re: Why running the same query after the first time is faster ?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|