Groups | Blog | Home
all groups > sql server programming > december 2005 >

sql server programming : is there a way to caching the result in a SP?



Skywalker
12/11/2005 7:08:35 PM
Hi All,

I am not sure if SQL200 or SQL2005 has cache function which can store the
query result into cache.

I have a large table T1 (C1, C2,...C20) with multi-million records and need
to do a report from it per hour.

Select C1,C2,C3, sum(C20),sum(C19) from T1 group by C1,C2,C3

Most of the historied recodes ( 10 days ago) do not change frequently,
however they do changes. Is there a way which can cache the report data for
those 10 days old records and only run the query based on changes? It will
greatly improve the performance.

Thanks for any help,

Skywalker

David Browne
12/11/2005 10:23:56 PM

[quoted text, click to view]

Look up "Indexed Views" in the Books Online.

David

AddThis Social Bookmark Button