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

  • SEARCH
  • Home
  • 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 440585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T20:53:15+00:00 2026-05-12T20:53:15+00:00

I have a set of approx 1 million rows (approx rowsize: 1.5kb) that needs

  • 0

I have a set of approx 1 million rows (approx rowsize: 1.5kb) that needs to be “cached” so that many different parts of our application can utilize it.

These rows are a derived/denormalized “view” of compiled data from other tables. Generating this data isn’t terribly expensive (30-60sec) but is far too slow to generate “on the fly” as part of a view or table-valued function that the application can query directly. I want to update this data periodically, perhaps every few minutes.

My first thought is to have a scheduled job that updates a global temp table with this data every n minutes.

What’s the best strategy, performance-wise? I’m not sure of the performance implications of storing it in a real table versus a global temp table (##tablename) versus other strategies I haven’t thought of. I don’t want to muck up the transaction logs with inserts to this table… it’s all derived data and doesn’t need to be persisted.

I’m using Microsoft SQL Server 2000. Upgrading during the timeframe of this project isn’t an option, but if there’s functionality in 2005/2008/2010 that would make this easier, I’d appreciate hearing about that.

  • 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-05-12T20:53:16+00:00Added an answer on May 12, 2026 at 8:53 pm

    I’d recommend using a materialized view (AKA indexed view).

    Limitations:

    1. View definition must always return the same results from the same underlying data.
    2. Views cannot use non-deterministic functions.
    3. The first index on a View must be a clustered, UNIQUE index.
    4. If you use Group By, you must include the new COUNT_BIG(*) in the select list.
    5. View definition cannot contain the following:

      1. TOP
      2. Text, ntext or image columns
      3. DISTINCT
      4. MIN, MAX, COUNT, STDEV, VARIANCE, AVG
      5. SUM on a nullable expression
      6. A derived table
      7. Rowset function
      8. Another view
      9. UNION
      10. Subqueries, outer joins, self joins
      11. Full-text predicates like CONTAIN or FREETEXT
      12. COMPUTE or COMPUTE BY
      13. Cannot include order by in view definition
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have set up an app that is registered for remote notifications. - (void)application:(UIApplication*)application
I have a fairly simple table with approx a million rows. id | my_col
I have set the eclipse java formatter to wrap lines that exceed 120 characters
If i have an ImageView that fills the screen. The ImageView background is set
We have a .NET application which our customers consider too large for mass deployment
I have a powershell script that runs a console .exe application. The console application
I have a set of 4 massive CSV files that I need to modify.
My application loads a data set of approx. 85bm to 100mb each time. The
I have a ListBox containing a set of images in a C# WPF application.
I have a huge table with more than one hundred million of rows and

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.