question

tomfp avatar image
tomfp asked

Temporary Caching expensive table

There is a rarely used feature of the system I maintain, that combines prospect/quote/order and archive data - and allows users to query it as a whole. It works by creating a temporary table of a union of the 4 data sources, then the user's query acts on the temporary table.

I say rarely used. When it is used, it is used a lot - but there may be weeks between uses.

What I want is to create this table once, if it hasn't been used recently and cache it, then continually query the cache table - and let it expire from the cache - maybe after 24 hours.

Is there any feature of SQL Server to accommodate this? - or a design pattern someone can refer me to?


Thanks

temporary-tablesplan-cache
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.