Can I enforce SQL Server explicitly NOT to CACHE my query result set? -
is there explicit command or to enforce sql server not 'cache' query results?
i working on performance issue , when long query finished on 2nd call takes fast, in order compare query performances when make modifications, want behavior not take place.
is possible?
you doing wrong. use precise measurements instead: enable set statistics io on
, set statistics time on
, compare queries. @ number of logical reads queries have, driving factor improve performance.
if force cold cache (which possible) optimizing wrong case, since times production server warmed , serving data form buffer pool.
also fact seeing significant io driven query first time clear indication of table scans. query rewrite may help, real problem more missing indexes , that's should focus on.
Comments
Post a Comment