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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:40:40+00:00 2026-05-26T01:40:40+00:00

This is a highly ambiguous question, as I am not even sure what I

  • 0

This is a highly ambiguous question, as I am not even sure what I am asking, but looking for guidance.

Basically, a system went went live a few weeks back. The DBAs have sent me a screen shot, which is created by an application called ‘Fog Light’ I believe, which monitors performance. It shows that most stored procs have a low ‘duration’ of being locked, around 1000 seconds per hour. However, there’s one that reports 73,000 seconds.

That number, alone, to me, means not much. Maybe the proc is heavily used? Compared to the rest? However, when we execute it, it takes 4 seconds to run on production data. Not too bad, considering what it’s doing. Their DBAs say that that is acceptable, but are concerned about the number of locking duration it’s got against it.

What does that mean? And where would I start hunting for issues? The proc does 5 UNIONS, and selects the result set into a #temp table. It then does a simple filter on the #Temp, and returns the result.

Sorry I don’t have much more info – I am unsure where to start looking – and .. is it even a problem?

  • 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-26T01:40:41+00:00Added an answer on May 26, 2026 at 1:40 am

    The first thing I would do is add the following line to the top of the offending stored procedure.

    SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED

    Try to sift though the msdn page on isolation levels.

    In general it means you don’t have to wait for other transactions to finish.
    But here are the highlights of READ UNCOMMITTED

    Specifies that statements can read rows that have been modified by other transactions but not yet committed.

    Transactions running at the READ UNCOMMITTED level do not issue shared locks to prevent other transactions from modifying data read by the current transaction. READ UNCOMMITTED transactions are also not blocked by exclusive locks that would prevent the current transaction from reading rows that have been modified but not committed by other transactions. When this option is set, it is possible to read uncommitted modifications, which are called dirty reads. Values in the data can be changed and rows can appear or disappear in the data set before the end of the transaction. This option has the same effect as setting NOLOCK on all tables in all SELECT statements in a transaction. This is the least restrictive of the isolation levels.

    Also, I guarantee that if you say "SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED" to someone they will think you are a GENIUS.

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

Sidebar

Related Questions

This is not exactly a programming question, but it's highly related. We are writing
This might seem like a stupid question I admit. But I'm in a small
This is a difficult and open-ended question I know, but I thought I'd throw
I understand that this is highly specific to the concrete application, but I'm just
To be clear, I am not looking for NaN or infinity, or asking what
This is a bit of a long shot, but if anyone can figure it
This is kinda oddball, but I was poking around with the GNU assembler today
Given this highly simplified example: abstract class Animal { } class Dog : Animal
This is probably because a lack experience with both Java and Android development, but
Well this is going to sound like a lame question, I know. This is

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.