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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:47:14+00:00 2026-05-13T13:47:14+00:00

I have a query that I have been tuning for some time but I

  • 0

I have a query that I have been tuning for some time but I can’t seem to get the execution time down much. In the execution plan everything looks like it is doing what it is supposed to, no large costs associated with any particular part of the query, everything is using index seek where it is supposed to. When I run the same query against a different client it runs fairly quickly but only returns 150k records. When I run it for my biggest client it returns 600k records and takes over ten minutes.

Could my issue be that with the number of records I’m returning it will be hard to get good performance or does what I described above seem within the ability of SQL Server?

  • 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-13T13:47:15+00:00Added an answer on May 13, 2026 at 1:47 pm

    Besides the number of records, what else is different on between the two systems:

    • RAM available for SQL
    • CPU cores
    • IO configuration (number of spindles in RAID, type of RAID, configuration of the LUN)
    • IO path (layout of logical and physical disks, location of database mdf/ndf/ldf files)
    • index fragmentation
    • load on the SQL Server
    • load on the host machine

    When compared the two locations for SET STATISTICS IO ON:

    • does the 600k do about x4 times IO compared with the 150k location? Then the time difference can be entirely attributed to the differences in hardware.
    • Is the logical IO count on the lines of x4 times but the physical IO count differ wildly? Then you have a RAM issues (not enough to cache the database in memory).
    • Is the number of physical IOs close to the expected x4 times, but the time is very different? Then you are probably dealing with fragmentation.
    • Does the number of IOs differ significantly from the expected x4 times? Then you have a different plan probably driven by very different cardinality and estimates.

    These are, of course, wild shots in the dark without proper data to back them up. Consider them a guess, not an authorithative solution.

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

Sidebar

Related Questions

I have a query that I know can be done using a subselect, but
I have an query that has been giving me trouble. I think there is
I have this query that i've been trying to figure out how to convert
I have a query that can be summarised in SQL as follows; Select S.StockCode
I am trying to get a list of records that have been in the
I have a query that does some magical sort-group-joining that works just fine on
On Sql Server 2008, I have a slow-running update query that has been working
Much have been written about the benefits of using PDO::prepare , but little has
I am using in C# MYsql .I have query that works if I run
I have a query that looks like SELECT P.Column1, P.Column2, P.Column3, ... ( SELECT

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.