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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:19:20+00:00 2026-06-17T06:19:20+00:00

I have a reporting web application that graphs information based on aggregations done in

  • 0

I have a reporting web application that graphs information based on aggregations done in a series of nested sql views (3 levels deep). The last nested view is called from a stored procedure within the entity framework code. The performance penalty of this has begun to take its toll, as it struggles to get data and times out:

In Sql profiler there’s 360,000+ reads and CPU @ 28313. In addition, I can’t even open the third level view in SQL without timing out.

The first view simply gathers data from the several tables and aggregates. The second performs calculations on this data such as date differences, time zone adjustments, and averages. The third finalizing these calculations and presents a summary of the required data. The third view is the one I query from.

What is a good strategy for untangling nested views, in general? Specifically if you have calculations that need to be done in SQL server, but can only be done once data has been combined into a certain level, what’s a better strategy than nested views?

Thanks for any help you can provide!

  • 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-06-17T06:19:22+00:00Added an answer on June 17, 2026 at 6:19 am

    You can include any view as a subquery, however, I doubt that in itself will help performance in this case. It will enable you to look at parts of the views and possibly put any shared parts into table variables or temporary tables.

    If you could share more information, that might help.

    I advise you:

    1. inline those views, so you’ve got it all in front of you
    2. cut it down, bit by bit, to see where the (uncompiled!!) performance issues are.
    3. fix the performance issues
    4. hope that the performance issues are in the same place once it is compiled.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The basic setup is that I have a web application that calls SQL Reporting
A client is reporting a problem using our Web-Based application. It seems that their
I have developed web application which uses JasperReports for reporting purpose. In that I
I have a reporting requirement in my web application for which I am looking
I have a Web Service call that returns reporting data using Linq-To-Entity (strongly type
I have an SQL Server Reporting Services (SSRS) report, that uses a view. That
I'm working on a web application that renders a reporting services report as a
We use an Reporting Services inside an ASP.NET web application. (We have an *.rdlc
We are planning to incorporate a traffic reporting system into our web application that
I have an application that calls out to a web service. It runs fine

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.