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 5990415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:14:27+00:00 2026-05-22T23:14:27+00:00

It takes about 5-10 minutes to refresh a prepared reporting table. We want to

  • 0

It takes about 5-10 minutes to refresh a prepared reporting table. We want to refresh this table constantly (maybe once every 15 minutes or continuously).

We query this reporting table very frequently (many times per minute) and I can’t keep it down for any length of time. It is okay if the data is 15 minutes old.

I can’t drop the table and recreate it. I can’t delete the table’s contents and recreate it.

Is there a technique I should be using, like swapping between two tables (read from one while we build the other) or do I put this 5-10 minute process in a large transaction?

  • 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-22T23:14:27+00:00Added an answer on May 22, 2026 at 11:14 pm

    Use synonyms?. On creation this points to tableA.

    CREATE SYNONYM ReportingTable FOR dbo.tableA;
    

    15 minutes later you create tableB and redefine the synonym

    DROP SYNONYM ReportingTable;
    CREATE SYNONYM ReportingTable FOR dbo.tableB;
    

    The synonym is merely a pointer to the actual table: this way the handling of the actual table renames etc is simplified and abstracted away and all code/clients would use ReportingTable

    Edit, 24 Nov 2011

    Synonyms are available in all edition: partition switching is Enterprise/Developer only.

    Edit, Feb 2012

    You can switch whole tables in standard edition (maybe Express, untested)

    ALTER TABLE .. SWITCH ..
    

    This would be more elegant than synonyms if the target table is empty.

    Edit, Feb 2012 (2)

    Also, you can rotate via schemas as per Caching joined tables in SQL Server

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this query that takes about 5 minutes to run in Oracle: select
This query takes about 52 seconds to complete. It appears 82% of the time
I have a PHP script that takes about 10 minutes to complete. I want
I've written a query in SQL Server 2008. The query takes about 4 minutes
I have a query that takes about 3 minutes to run. The Query is
I'm executing a fetch request that returns about 2000 entities. Currently, this takes about
I run a procedure that takes about 20 minutes to complete, I just wonder
Right now our team's ASP.NET MVC 2.0 web project takes about 4 minutes to
Consider a table invoice_data containing data about invoices over 12 years. This data will
I have a PYTHON CGI script(Content-type: text/plain ) which takes about 10 minutes to

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.