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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:55:11+00:00 2026-05-11T14:55:11+00:00

I have a table which contains around 400 000 records and which gets called

  • 0

I have a table which contains around 400 000 records and which gets called on the homepage of the intranet website. At peak times we can have 300-400 concurrent users. The SQL Profiler tool gives the following output.

  • CPU: 406
  • Reads: 32446
  • Duration: 397

I have indexed the fields involved in the ‘where’ clause. Is there a way to improve the response time any more?

What needs to be done to reduce the disk reads?

Server configuration: Windows 2003 64bit, SQL Server 2005 64bit SP2, .NET 2.0.

Added the query and table definition below. There are some 40 more fields which I have not added here for sake of simplicity. Those fields which are mostly varchar are not used in the where clause. They are just there to shown on the page. There are some fields (5-6) which are currently not used but I have left them in the query because they will be required later. Should I take them off now then? would that improve the response time?

Query

SELECT      u.[PeopleKey],      u.[EnterpriseId],        u.[PersonnelNbr],        u.LastName,        u.FirstName,        u.MiddleName,         cc.WorkForceCd AS CareerCounselorWorkForceCd,                          cc.WorkForceDesc AS CareerCounselorWorkForceDesc,                         cc.WorkGroupCd AS CareerCounselorWorkGroupCd,                        cc.WorkGroupDesc AS CareerCounselorWorkGroupDesc,                      cc.CareerLevelCd As CareerCounselorCareerLevelCd,                    cc.CareerLevelDesc AS CareerCounselorCareerLevel,                  CL.NextLevelCD as  nextCareerLevelCd FROM      [User] u      LEFT JOIN [User] cc ON          u.[CareerCounselorPeopleKey] = cc.PersonnelNbr       Left JOIN [CareerLevel] CLON          u.WorkForceCd= CL.WorkForceCd AND          u.CareerLevelCd = CL.LevelCd WHERE      u.PeopleKey = <integer> 

[CareerLevel]

ID  int 4 [Primary Key - clustered index] Description varchar 150 WorkforceCd varchar 4 LevelCD varchar     10 NextLevelCD varchar 10 

[User]

PeopleKey   int 4 [Primary Key - clustered index] EnterpriseId    varchar 50 [non clustered index] PersonnelNbr    varchar 8 [non clustered index] FirstName   varchar 40 LastName    varchar 40 MiddleName  varchar 40 CareerCounselorPeopleKey    int 4 CareerCounselorPersonnelNbr varchar 8 CareerCounselorName varchar 50 CapabilityCd    varchar 5 CapabilityDesc  varchar 25 WorkforceCd varchar 4 WorkForceDesc   varchar 40 WorkGroupCd varchar 4 WorkGroupDesc   varchar 50 CareerLevelCd   varchar 10 CareerLevelDesc varchar 50 
  • 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. 2026-05-11T14:55:11+00:00Added an answer on May 11, 2026 at 2:55 pm

    Can you publish the table schema and the index definitions? What do you queries look like?

    The amount of Reads would hint at massive I/O operations – so maybe due to your table and index setups and/or the way you query, even though you have indices, they’re not being used.

    Do you regularly run maintenance plans on the database? E.g. do your indices get reorganized and/or rebuilt when index fragmentation gets too high?

    You could always use SQL’s Database Tuning Advisor to try and get hints about how to optimize certain queries – or better yet, collect some real-life usage data using a SQL Trace and analyze that for potential tuning steps.

    Marc

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

Sidebar

Ask A Question

Stats

  • Questions 124k
  • Answers 124k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Are you running on OS 3.0? I saw the same… May 12, 2026 at 1:19 am
  • Editorial Team
    Editorial Team added an answer It looks like you need to register Apache::Session::Memcached with Apache::Session::Wrapper,… May 12, 2026 at 1:19 am
  • Editorial Team
    Editorial Team added an answer Use DATENAME or DATEPART: SELECT DATENAME(dw,GETDATE()) -- Friday SELECT DATEPART(dw,GETDATE())… May 12, 2026 at 1:19 am

Related Questions

I have a table for a contact form and this table contains another table
I have a mysql question. I have an application which I am migrating to
The current project I inherited mainly revolves around one unnormalized table. There are some
I have a table of time-series data of which I need to find all

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.