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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T20:18:58+00:00 2026-06-07T20:18:58+00:00

I have a database table that I use as a queue system, where separate

  • 0

I have a database table that I use as a queue system, where separate process that talk to each other create and read entries in the table. For example, when a user initiates a search an entry is created, then another process that runs every second or two will pick up that new entry, update the status and then do a search, updating the entry again when the search is complete. This all seems to work well with thousands of searches per hour.

However, I have a master admin screen that lets me view the status of all of these ‘jobs’ but it runs very slowly. I basically return all entries in the table for the last hour so I can keep an eye on what’s going on. I think that I am running into lock issues of some sort. I only need to read each entry, and don’t really care if it the data is a little bit out of date. I just use a standard ‘Select * from Table’ statement so maybe it is waiting for other locks to expire before returning data as the jobs are constantly updating the data.

Would this be handled better by a certain kind of cursor to return each row one at a time, etc? Any other ideas?

Thanks

  • 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-07T20:19:01+00:00Added an answer on June 7, 2026 at 8:19 pm

    If you really don’t care if the data is a bit out of date… or if you only need the data to be 99.99% accurate, consider using WITH (NOLOCK):

    SELECT * FROM Table WITH (NOLOCK);
    

    This will instruct your query to use the READ UNCOMMITTED ISOLATION LEVEL, which has the following behavior:

    Specifies that dirty reads are allowed. No shared locks are issued to
    prevent other transactions from modifying data read by the current
    transaction, and exclusive locks set by other transactions do not
    block the current transaction from reading the locked data.

    Be aware that NOLOCK may cause some inaccuracies in your data, so it probably isn’t a good idea to use it throughout the rest of your system.

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

Sidebar

Related Questions

I have a database table TravelRequest that contains, amongst other things, the fields SignOffName
I have a very simple database table that joins two other tables in a
I have a single database table that stores week entries. Id Value WeekId 1
I have a field in my database table that use to store an enumeration
I have a database table that essentially contains different types of things. I'll use
I have a Java Db database table that I use to display results in
I have a priority queue table that can be simplistically represented as: CREATE TABLE
Anyone have a PL-SQL statement that i can use to generate database & tables
I have a database table that has a Unique Key constraint defined to avoid
I have a database table that is a dictionary of defined terms -- key,

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.