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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:12:55+00:00 2026-06-17T12:12:55+00:00

I am writing a query that basically pulls multiple columns from multiple views. Is

  • 0

I am writing a query that basically pulls multiple columns from multiple views. Is it better to index each views for faster performance?

query i.e. A to G are views

SELECT A.C1, B.C1
FROM A INNER JOIN B on A.C3=B.C3 
Inner join C on C.C2 = B.C2
inner join D on D.C4 = C.C4
...
Inner join H ON H.C5 = G.C5
where <some condition>

Each views (A to H) are pulling data from different tables. None of the views are indexed (I don’t see anything when I expand the INDEX folder within the view’s tree). Should I add index in each of these views for faster performance? If so, should I add index on the columns I am using for ON JOIN clause?

Thank you

  • 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-17T12:12:56+00:00Added an answer on June 17, 2026 at 12:12 pm

    First, enable the “Include Actual Execution Plan” and run your query to see where the performance hit is. Look for “Table scan” as a possible culprit.

    If nothing obvious is found, try Query -> “Analyze query in database engine tuning advisor”. SQL server will suggest some indexes to add. Don’t just apply them all but compare against the existing queries to make sure you aren’t adding too much overlap.

    As nkj said, optimze queries on tables before indexing the views.

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

Sidebar

Related Questions

Basically I am writing a report script where it pulls data from a database
I'm writing a query that returns a list of models that needs data from
I'm writing a query that inserts customer data into a MSSQL database. Very basic.
I am having trouble writing query so that I can query the content of
I was successful in writing the query that lists salesmen that did sell to
How would one go about writing a query that selects items 2000-2010 out of
I'm writing a PHP script that builds an SQL query by concatenating the string
I'm writing a query that has to count the number of students enrolled in
I am writing a query for my database and basically I want to query
I am having a problem writing a MySQL query to get data from 2

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.