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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:06:40+00:00 2026-05-13T20:06:40+00:00

I did create two new indexes on the tables that are used on a

  • 0

I did create two new indexes on the tables that are used on a the sp.
The new results shows that on the part of problematic joins, the scans are converted to seek. I think seek is better rather than scan operations. On the other hand, the time takes more or less the same duration as it was without new indexes.

So clearly, how can i get satisfied before putting my new version sp to production.

For instance, changing parameters of sp can help me to see if the new version faster than old version or what else?

Regards
bk

  • 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-13T20:06:40+00:00Added an answer on May 13, 2026 at 8:06 pm

    A few things to do:
    1) ensure you are comparing performance fairly by clearing the data and execution plan cache after each test run. You can clear these down using (recommend only doing this on your dev/test environment):

    CHECKPOINT -- force dirty pages in the buffer to be written to disk
    DBCC DROPCLEANBUFFERS -- clear the data cache
    DBCC FREEPROCCACHE -- clear the execution plan cache
    

    2) Run SQL Profiler to record the Reads/Writes/CPU/Duration for each situation (with/without the indexes). This will give you a range of metrics to compare on (i.e. as opposed to just the time shown in SSMS).
    Edit:
    To run an SQL Profiler trace, in Management Studio go to Tools -> SQL Server Profiler. WHen prompted, specify the db server to run the trace against. A “Trace Properties” dialog will appear – you should just be able to click “Run” to start running a default trace. Then just execute your stored procedure and see it appear in SQL Profiler – it will show the Duration, number of reads etc alongside it.

    3) Test with much larger volumes of data than you already have. If you test with small amounts of data, then the difference is often difficult to see on duration alone.

    I recently blogged here about how to fairly test the performance of different variants of a query, which goes into a bit more detail about how I do it.

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

Sidebar

Related Questions

What I did was create two .java files. One that can compile and run
I did create a XDateTime class that is able to handle inaccurate date and
I need to create a rule that rewrites an URL to a new one
I'm starting a new application in rhodes and I'm trying to associate two tables.
Hi I am new to Javascript and am trying to create a function that
hi i am new to iphone. what i did is creating two classes named
I did heroku create and pushed a working rails app to the server. Everything
I did this: git branch --track stats_page to create a separate branch to try
How can I create a const boost matrix? The following did not work: const
I am needing to create a web service, so the first thing I did

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.