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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:28:55+00:00 2026-05-28T01:28:55+00:00

Due to performance issues arising from row locking and a long running query in

  • 0

Due to performance issues arising from row locking and a long running query in a trigger, I’ve opted to instead run the query as a stored procedure from a cron job every five minutes.

My problem is that I need to prevent the situation where the query takes longer than 5 minutes and collides with the next scheduled run of the stored procedure. Since I do run this query in transaction, ideally I’d just execute a rollback somewhere in the stored procedure once the five minutes were up. Is this possible?

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-05-28T01:28:55+00:00Added an answer on May 28, 2026 at 1:28 am

    The ‘brute force’ method would be to have a table with ‘jobs’. Each row would have a start time and end time. Look for the most recent start time that doesn’t have an end time. If your next job wants to start and there isn’t an end time listed then kill the previous job.

    You could even put the process id in there.

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

Sidebar

Related Questions

Due to performance issues, I have had to transfer my android opengl code from
I am having performance issues with MongoDB. Running on: MongoDB 2.0.1 Windows 2008 R2
Due to performance issues (benchmarked) I'm trying to use another autoloader than the default
I'm having some performance issues with MySQL database due to it's normalization. Most of
I am working in a project that's work with N Hibernate. Due to performance
Currently running Server 2003 but am looking at reinstalling in the near future due
In SQL Server 2000 I have a query like SELECT DISTINCT A.COLUMN1, B.COLUMN2 FROM
I am facing a problem. I have one query Select * from tabA where
Due to repetitive errors with one of our Java applications: Engine engine_0: Error in
Due to continuing crash problems, I'm about to uninstall and reinstall my copy of

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.