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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:42:21+00:00 2026-05-24T11:42:21+00:00

I have an application whose first page after login presents the user with a

  • 0

I have an application whose first page after login presents the user with a lot of data. The query against the database takes a long time – let’s say 10 seconds. The database is in SQL Server 2008, the query run is constructed as a prepared statement in Java. The data that needs to be displayed though will generally only change once per day. So – if I could have this result cached, and display a lot quicker that would be ideal.

However, I’m not really sure what I need to do to bring down this 10 second wait – every time I load the page the same delay happens. Is there something I need to do to make sure SQL Server caches the results to the query? It certainly doesn’t seem to be any quicker on a second load at the minute – where should I start exploring?

All help is much appreciated!

  • 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-24T11:42:22+00:00Added an answer on May 24, 2026 at 11:42 am

    You should look into indexed views.

    They let you store in an index the results of a query (in the form of the view) that the optimizer can access indirectly or directly (i.e. it “knows” it has the data and will pull it for queries besides those against that view).

    There are a number of constraints as outlined in the link.

    They are the only really viable way (besides creating and managing results tables) to cache complicated query results like aggregates.

    I’m guessing your query is complicated and/or contains aggregated fields and grouping, which will ALWAYS entail processing overhead even if the data pages are already cached in memory.

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

Sidebar

Related Questions

In my WPF application I have a CheckBox whose IsChecked value is bound to
I have a C# Windows Forms application, whose prototype was created on SQL Server
In a VB6 application, I have a Dictionary whose keys are String s and
I have Application written with GWT 1.7. I have one page where I upload
I have an application that uses OAuth whose logic is something like this: If
I have a MVC 3 application with Razor. The form is data driven and
I have a dynamically generated path whose data is composed of a PathGeometry composed
I have an ASP.NET MVC application with a page that displays a large table
We have a live & deployed ASP.Net application which is quite busy, which takes
I have heard of desktop applications whose code has been open-sourced, but are there

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.